# HG changeset patch # User Jim Unroe rock.unroe@gmail.com # Date 1361066449 18000 # Node ID 2bc4a3de63bb651e8eebe0a64d631115da56ffa3 # Parent 10757edf3e4489cf70c50f55600c68dad2acc155 [uv5r] add a setting for enabling ANI ID added to DTMF settings tab #585
diff -r 10757edf3e44 -r 2bc4a3de63bb chirp/uv5r.py --- a/chirp/uv5r.py Sat Feb 16 20:13:52 2013 -0500 +++ b/chirp/uv5r.py Sat Feb 16 21:00:49 2013 -0500 @@ -51,6 +51,8 @@ #seekto 0x0CB2; struct { u8 code[5]; + u8 unused1:6, + aniid:2; } ani;
#seekto 0x0E28; @@ -1006,6 +1008,12 @@ rs.set_apply_callback(apply_code, self._memobj.ani) dtmf.append(rs)
+ options = ["Off", "BOT", "EOT", "Both"] + rs = RadioSetting("ani.aniid", "ANI ID", + RadioSettingValueList(options, + options[self._memobj.ani.aniid])) + dtmf.append(rs) + rs = RadioSetting("dtmfst", "DTMF Sidetone", RadioSettingValueList(DTMFST_LIST, DTMFST_LIST[_settings.dtmfst]))