[chirp_devel] [PATCH 0 of 1 ] [uv-b5] Add instructions - second try
# HG changeset patch # User Marco Filippi iz3gme.marco@gmail.com # Date 1382339839 -7200 # Node ID 72de80dd3e6b0d04baa7f02e5fbbd80dc63b0edc # Parent 7c34c1054b30a6699b14e7e66334452ede272f01 [uv-b5] Add instructions for clone mode part of feature #1163
diff --git a/chirp/uvb5.py b/chirp/uvb5.py --- a/chirp/uvb5.py +++ b/chirp/uvb5.py @@ -19,6 +19,7 @@ RadioSettingValueBoolean, RadioSettingValueList, \ RadioSettingValueInteger, RadioSettingValueString, \ RadioSettingValueFloat +from textwrap import dedent
mem_format = """ struct memory { @@ -233,6 +234,25 @@
_memsize = 0x1000
+ @classmethod + def get_prompts(cls): + rp = chirp_common.RadioPrompts() + rp.pre_download = _(dedent("""\ + 1. Turn radio off. + 2. Connect cable to mic/spkr connector. + 3. Make sure connector is firmly connected. + 4. Turn radio on. + 5. Ensure that the radio is tuned to channel with no activity. + 6. Click OK to download image from device.""")) + rp.pre_upload = _(dedent("""\ + 1. Turn radio off. + 2. Connect cable to mic/spkr connector. + 3. Make sure connector is firmly connected. + 4. Turn radio on. + 5. Ensure that the radio is tuned to channel with no activity. + 6. Click OK to upload image to device.""")) + return rp + def get_features(self): rf = chirp_common.RadioFeatures() rf.has_settings = True
participants (1)
-
Marco Filippi IZ3GME