From c1bfc59c7129efe1dc8f35a110ca8f420196d640 Mon Sep 17 00:00:00 2001 From: Kristoffer Richardsson Date: Wed, 29 Jul 2020 14:18:43 +0200 Subject: [PATCH] #421 Add missing LED ring effects to drop down --- src/cfclient/ui/tabs/FlightTab.py | 37 ++++++++++++++++++------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/src/cfclient/ui/tabs/FlightTab.py b/src/cfclient/ui/tabs/FlightTab.py index 943c7a34..9504687c 100644 --- a/src/cfclient/ui/tabs/FlightTab.py +++ b/src/cfclient/ui/tabs/FlightTab.py @@ -536,22 +536,27 @@ def _ring_populate_dropdown(self): self._ring_effect = current self._ledring_nbr_effects = nbr - hardcoded_names = {0: "Off", - 1: "White spinner", - 2: "Color spinner", - 3: "Tilt effect", - 4: "Brightness effect", - 5: "Color spinner 2", - 6: "Double spinner", - 7: "Solid color effect", - 8: "Factory test", - 9: "Battery status", - 10: "Boat lights", - 11: "Alert", - 12: "Gravity", - 13: "LED tab", - 14: "Color fader", - 15: "Link quality"} + hardcoded_names = { + 0: "Off", + 1: "White spinner", + 2: "Color spinner", + 3: "Tilt effect", + 4: "Brightness effect", + 5: "Color spinner 2", + 6: "Double spinner", + 7: "Solid color effect", + 8: "Factory test", + 9: "Battery status", + 10: "Boat lights", + 11: "Alert", + 12: "Gravity", + 13: "LED tab", + 14: "Color fader", + 15: "Link quality", + 16: "Location server status", + 17: "Sequencer", + 18: "Lighthouse quality", + } for i in range(nbr + 1): name = "{}: ".format(i)