[chirp_devel] [PATCH] Fix for Issue #4239 FT-857 exception caused by incorrect data type
Eugene Dale Tyler
Wed Mar 29 23:11:36 PDT 2017
-------------- next part --------------
# HG changeset patch
# User Dale Tyler <chirp16 at tylerent.com>
# Date 1490853126 25200
# Wed Mar 29 22:52:06 2017 -0700
# Node ID 0473f80a036595eb861393b7cdfc5214e2c32e5a
# Parent 89658834b8aca6fd6b6ffb6ff72b2620935f1fc9
[ft857] FIx exception due to wrong data type Fixes #4239
Fixes a problem with dig_disp (Menu 036) and dig_shift (Menu 039) where the entered
value would be mutiplied by 256 and thus would likely cause an exception due to a
range error. For example, a value of 30 would be interpreted (incorrectly) as 768
which is out of the acceptable range -300 <= x <= 300.
diff -r 89658834b8ac -r 0473f80a0365 chirp/drivers/ft857.py
--- a/chirp/drivers/ft857.py Wed Mar 29 09:38:58 2017 -0700
+++ b/chirp/drivers/ft857.py Wed Mar 29 22:52:06 2017 -0700
@@ -189,8 +189,8 @@
pkt1200:7;
u8 unknown15:1,
pkt9600:7;
- il16 dig_shift;
- il16 dig_disp;
+ i16 dig_shift;
+ i16 dig_disp;
i8 r_lsb_car;
i8 r_usb_car;
i8 t_lsb_car;
More information about the chirp_devel
mailing list