summaryrefslogtreecommitdiffstats
path: root/parse_led.py
diff options
context:
space:
mode:
Diffstat (limited to 'parse_led.py')
-rwxr-xr-xparse_led.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/parse_led.py b/parse_led.py
index 766a6aa..da23328 100755
--- a/parse_led.py
+++ b/parse_led.py
@@ -54,6 +54,11 @@ if __name__ == '__main__':
underscore(group) +
'\",{\n')
+ # Some LED groups could be empty
+ if not ledset:
+ ofile.write(' }},\n')
+ continue
+
for led_dict, list_dict in ledset.iteritems():
# Need this to make sure the LED name is printed once
name_printed = False
OpenPOWER on IntegriCloud