Project

General

Profile

Bug #3387 » patch.diff

Daniel Clerc, 04/14/2016 08:00 AM

View differences:

chirp/drivers/ft2900.py Mon Apr 11 21:02:43 2016 -0400 → chirp/drivers/ft2900.py Thu Apr 14 13:43:25 2016 +0200
56 56
        LOG.debug("len(header) = %s\n" % len(data))
57 57

  
58 58
        if data == radio.IDBLOCK:
59
            # I think this is information is worth to be logged
60
            LOG.debug("Radio successfully identified!")
59 61
            break
60 62

  
61 63
    if data != radio.IDBLOCK:
62 64
        raise Exception("Failed to read header")
63 65

  
64 66
    _send(radio.pipe, ACK)
65

  
67
    
66 68
    # initialize data, the big var that holds all memory
67 69
    data = ""
68 70

  
......
1251 1253
    MODEL = "FT-2900/1900 (Modded)"
1252 1254
    VARIANT = "Opened Xmit"
1253 1255
    IDBLOCK = "\x56\x43\x32\x33\x00\x02\xc7\x01\x01\x01"
1256

  
1257

  
1258
# this is a modded version of the FT2900E. In this version a greater
1259
# transmit range is allowed the ARS fits the european style. To archive
1260
# this mod one need to blank all the jumpers in the control head, but the 
1261
# first
1262
@directory.register
1263
class FT2900ModERadio(FT2900Radio):
1264
    """Yaesu FT-2900EMod"""
1265
    MODEL = "FT-2900/1900 (Modded E)"
1266
    VARIANT = "Opened Xmit E Version"
1267
    IDBLOCK = "\x56\x43\x32\x33\x00\x02\xc3\x02\x01\x01"
(1-1/2)