[chirp_devel] [PATCH] [FT1D] fix the GPS power setting
# HG changeset patch # User Angus Ainslie angus@akkea.ca # Date 1432682357 21600 # Tue May 26 17:19:17 2015 -0600 # Node ID 1540030fc327c5b56967a208496b16081715fa98 # Parent d5d7c8a069537939ec39575b6eabbc36c40e5934 [FT1D] fix the GPS power setting
diff -r d5d7c8a06953 -r 1540030fc327 chirp/drivers/ft1d.py --- a/chirp/drivers/ft1d.py Tue May 12 15:27:55 2015 -0700 +++ b/chirp/drivers/ft1d.py Tue May 26 17:19:17 2015 -0600 @@ -228,9 +228,11 @@ selected_beacon_status_txt:3; u8 unknown19:4, beacon_interval:4; - u8 unknowni21:4, + u8 unknown21:4, tx_delay:4; - u8 unknown21b:6, + u8 unknown21a:1, + gps_power:1, + unknown21b:4, gps_units_altitude_ft:1, gps_units_position_sss:1; u8 unknown20:6, @@ -538,7 +540,7 @@ _DIST_UNITS = ("km", "mile") _POS_UNITS = ("dd.mmmm'", "dd mm'ss"") _SPEED_UNITS = ("km/h", "knot", "mph") - _TIME_SOURCE = ("manual", "GPS") + _TIME_SOURCE = ("GPS", "manual") _TZ = ("-13:00", "-13:30", "-12:00", "-12:30", "-11:00", "-11:30", "-10:00", "-10:30", "-09:00", "-09:30", "-08:00", "-08:30", "-07:00", "-07:30", "-06:00", "-06:30", "-05:00", "-05:30", @@ -884,7 +886,13 @@ menu.append(rs)
val = RadioSettingValueList( - self._TIME_SOURCE, self._TIME_SOURCE[aprs.set_time_manually]) + self._OFF_ON, + self._OFF_ON[aprs.gps_power]) + rs = RadioSetting("aprs.gps_power", "GPS Power", val) + menu.append(rs) + + val = RadioSettingValueList(self._TIME_SOURCE, + self._TIME_SOURCE[aprs.set_time_manually]) rs = RadioSetting("aprs.set_time_manually", "Time Source", val) menu.append(rs)
participants (2)
-
Angus Ainslie
-
Dan Smith