Change back bandwidth if user deselects channel 5

This commit is contained in:
jacob.eva 2024-09-16 18:35:04 +01:00
parent a89f452ccb
commit 2ce8b1bdfb
No known key found for this signature in database
GPG Key ID: 0B92E083BBCCAA1E

View File

@ -3807,6 +3807,9 @@ class SidebandApp(MDApp):
if self.sideband.config["hw_rnode_channel_index"] == 4: if self.sideband.config["hw_rnode_channel_index"] == 4:
# Change bandwidth on channel 5 to 250kHz due to le epic ofcom regulation # Change bandwidth on channel 5 to 250kHz due to le epic ofcom regulation
self.hardware_rnode_screen.ids.hardware_rnode_bandwidth.text = str(250000 / 1000) self.hardware_rnode_screen.ids.hardware_rnode_bandwidth.text = str(250000 / 1000)
else:
preset = self.sideband.config["hw_rnode_presets"][self.sideband.config["hw_rnode_preset_index"]]
self.hardware_rnode_load_preset(preset, primary_modem)
else: else:
self.hardware_rnode_screen.ids.hardware_rnode_sec_channel.text = channel self.hardware_rnode_screen.ids.hardware_rnode_sec_channel.text = channel