Project

General

Profile

Feature #2291 » patch.diff

Marcos Vives, 02/06/2015 04:09 PM

View differences:

chirp/h777.py Sun Feb 01 17:51:08 2015 -0500 → chirp/h777.py Sat Feb 07 01:04:57 2015 +0100
254 254
        rf.valid_modes = ["NFM", "FM"]  # 12.5 KHz, 25 kHz.
255 255
        rf.valid_skips = ["", "S"]
256 256
        rf.valid_tmodes = ["", "Tone", "TSQL", "DTCS", "Cross"]
257
        rf.valid_duplexes = ["", "-", "+", "split", "off"]
257 258
        rf.has_rx_dtcs = True
258 259
        rf.has_ctone = True
259 260
        rf.has_cross = True
......
329 330
            mem.empty = True
330 331
            return mem
331 332

  
332
        if int(_mem.rxfreq) == int(_mem.txfreq):
333
        if _mem.txfreq.get_raw() == "\xFF\xFF\xFF\xFF":
334
            mem.duplex = "off"
335
            mem.offset = 0
336
        elif int(_mem.rxfreq) == int(_mem.txfreq):
333 337
            mem.duplex = ""
334 338
            mem.offset = 0
335 339
        else:
......
389 393
            # NOTE: Only two settings right now, both are inverted
390 394
            setattr(_mem, setting.get_name(), not int(setting.value))
391 395

  
396
        # When set to one, official programming software (BF-480) shows always
397
        # "WFM", even if we choose "NFM". Therefore, for compatibility
398
        # purposes, we will set these to zero.
399
        _mem.unknown1 = 0;
400
        _mem.unknown2 = 0;
401
        _mem.unknown3 = 0;
402

  
392 403
    def get_settings(self):
393 404
        _settings = self._memobj.settings
394 405
        basic = RadioSettingGroup("basic", "Basic Settings")
(2-2/2)