diff --git a/chirp/drivers/baofeng_uv17.py b/chirp/drivers/baofeng_uv17.py index 1e6838fb..48fb57fc 100644 --- a/chirp/drivers/baofeng_uv17.py +++ b/chirp/drivers/baofeng_uv17.py @@ -492,14 +492,6 @@ def set_memory(self, mem): self.set_memory_common(mem, _mem) - def get_features(self): - rf = super().get_features() - rf.has_bank = False - return rf - - def get_mapping_models(self): - return [] - @directory.register class UV13Pro(UV17): diff --git a/chirp/drivers/baofeng_uv17Pro.py b/chirp/drivers/baofeng_uv17Pro.py index 3a0347e8..5763ae2c 100644 --- a/chirp/drivers/baofeng_uv17Pro.py +++ b/chirp/drivers/baofeng_uv17Pro.py @@ -1139,15 +1139,12 @@ def sync_out(self): raise errors.RadioError('Unexpected error communicating ' 'with the radio') - def get_bank_model(self): - return chirp_common.StaticBankModel(self, banks=10) - def get_features(self): """Get the radio's features""" rf = chirp_common.RadioFeatures() rf.has_settings = True - rf.has_bank = True + rf.has_bank = False rf.has_tuning_step = False rf.can_odd_split = True rf.has_name = True @@ -1415,6 +1412,14 @@ class UV17ProGPS(UV17Pro): UV17Pro._uhf_range, UV17Pro._uhf2_range] MODES = UV17Pro.MODES + ['AM'] + def get_bank_model(self): + return chirp_common.StaticBankModel(self, banks=10) + + def get_features(self): + rf = super().get_features() + rf.has_bank = True + return rf + @directory.register class BF5RM(UV17Pro): @@ -1611,6 +1616,14 @@ def apply_stationid(setting, obj): rs.set_apply_callback(apply_stationid, _nameobj) basic.append(rs) + def get_bank_model(self): + return chirp_common.StaticBankModel(self, banks=10) + + def get_features(self): + rf = super().get_features() + rf.has_bank = True + return rf + @directory.register class UV5RH(UV17Pro):