Project

General

Profile

Bug #1079 » t7h-offsets.patch

patch to be merged - Eric Wolak, 08/18/2013 02:41 PM

View differences:

chirp/ict7h.py Sun Aug 11 22:11:54 2013 -0700 → chirp/ict7h.py Sun Aug 18 14:39:43 2013 -0700
def get_features(self):
rf = chirp_common.RadioFeatures()
rf.memory_bounds = (0, 59)
rf.memory_bounds = (1, 60)
rf.valid_modes = list(MODES)
rf.valid_tmodes = list(TMODES)
rf.valid_duplexes = list(DUPLEX)
......
return repr(self._memobj.memory[number])
def get_memory(self, number):
_mem = self._memobj.memory[number]
_flag = self._memobj.flags[number]
_mem = self._memobj.memory[number-1]
_flag = self._memobj.flags[number-1]
mem = chirp_common.Memory()
mem.number = number
......
return mem
def set_memory(self, mem):
_mem = self._memobj.memory[mem.number]
_flag = self._memobj.flags[mem.number]
_mem = self._memobj.memory[mem.number-1]
_flag = self._memobj.flags[mem.number-1]
_mem.freq = int(mem.freq / 100000)
topfreq = int(mem.freq / 100000) * 100000
    (1-1/1)