Project

General

Profile

Bug #1707 » uv5r.py.diff

Marcus van Dam, 08/07/2016 11:10 AM

View differences:

/b/drivers/uv5r.py 2016-08-06 23:07:53.560289955 +0200
284 284
BASETYPE_F11 = ["USA"]
285 285
BASETYPE_UV82 = ["US2S", "B82S", "BF82", "N82-2", "N822"]
286 286
BASETYPE_BJ55 = ["BJ55"]  # needed for for the Baojie UV-55 in bjuv55.py
287
BASETYPE_UV6 = ["BF1"]
287
BASETYPE_UV6 = ["BF1", "UV6S83"]
288 288
BASETYPE_KT980HP = ["BFP3V3 B"]
289 289
BASETYPE_F8HP = ["BFP3V3 F", "N5R-3", "N5R3", "F5R3", "BFT"]
290 290
BASETYPE_UV82HP = ["N82-3", "N823"]
......
411 411
        raise errors.RadioError("Radio did not respond")
412 412

  
413 413
    serial.write("\x02")
414
    ident = serial.read(8)
414
    ident = serial.read(12)
415 415

  
416 416
    LOG.info("Ident: %s" % util.hexprint(ident))
417 417

  
......
420 420
    if ack != "\x06":
421 421
        raise errors.RadioError("Radio refused clone")
422 422

  
423
    return ident
423
    return ident[:8]
424 424

  
425 425

  
426 426
def _read_block(radio, start, size, first_command=False):
(30-30/32)