We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 906a645 commit e0f670bCopy full SHA for e0f670b
1 file changed
examples/mid_level/example_mid_level_update.py
@@ -32,9 +32,9 @@ def input_callback(input_value: str) -> bool:
32
if input_value == "q":
33
# end keyboard input thread
34
return True
35
- elif input_value >= '1' and input_value <= '8':
+ if "1" <= input_value <= "8":
36
index = int(input_value) - 1
37
- if index >= 0 and index < len(channel_config):
+ if 0 <= index < len(channel_config):
38
cc = channel_config[index]
39
if cc is not None:
40
cc.is_active = not cc.is_active
@@ -45,7 +45,7 @@ def input_callback(input_value: str) -> bool:
45
print("Invalid channel config index")
46
47
return False
48
-
+
49
50
print("Invalid command")
51
0 commit comments