Skip to content

Commit

Permalink
#421 Add missing LED ring effects to drop down
Browse files Browse the repository at this point in the history
  • Loading branch information
krichardsson committed Jul 29, 2020
1 parent e9e5a7a commit c1bfc59
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions src/cfclient/ui/tabs/FlightTab.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c1bfc59

Please sign in to comment.