Bug fix selecting the serial baud rate when there is an option in the preferences file not stored in the list of baud rates. (Issue: https://github.com/gepd/Deviot/issues/190)
@@ -405,7 +405,11 @@ class QuickMenu(PreferencesBridge):
"""
current = get_setting('baudrate', "9600")
items = QuickMenu.baudrate_list()
+
+ try:
self.index = items.index(current)
+ except ValueError:
+ self.index = 0
return items
