mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2024-11-22 13:30:36 +01:00
Fix index error
This commit is contained in:
parent
144d317702
commit
4bcab64dcc
@ -3831,7 +3831,7 @@ class SidebandApp(MDApp):
|
||||
primary_modem = True
|
||||
|
||||
elif caller == self.hardware_rnode_screen.ids.hardware_rnode_preset_next:
|
||||
self.sideband.config.hw_rnode_preset_index += 1
|
||||
self.sideband.config["hw_rnode_preset_index"] += 1
|
||||
if self.sideband.config["hw_rnode_preset_index"] >= len(self.sideband.config["hw_rnode_channels"].keys()):
|
||||
self.sideband.config["hw_rnode_preset_index"] = len(self.sideband.config["hw_rnode_channels"].keys()) - 1
|
||||
preset = self.sideband.config["hw_rnode_presets"][self.sideband.config["hw_rnode_preset_index"]]
|
||||
|
Loading…
Reference in New Issue
Block a user