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
BASETYPE_F11 = ["USA"]
BASETYPE_UV82 = ["US2S", "B82S", "BF82", "N82-2", "N822"]
BASETYPE_BJ55 = ["BJ55"] # needed for for the Baojie UV-55 in bjuv55.py
BASETYPE_UV6 = ["BF1"]
BASETYPE_UV6 = ["BF1", "UV6S83"]
BASETYPE_KT980HP = ["BFP3V3 B"]
BASETYPE_F8HP = ["BFP3V3 F", "N5R-3", "N5R3", "F5R3", "BFT"]
BASETYPE_UV82HP = ["N82-3", "N823"]
......
raise errors.RadioError("Radio did not respond")
serial.write("\x02")
ident = serial.read(8)
ident = serial.read(12)
LOG.info("Ident: %s" % util.hexprint(ident))
......
if ack != "\x06":
raise errors.RadioError("Radio refused clone")
return ident
return ident[:8]
def _read_block(radio, start, size, first_command=False):
(30-30/32)