diff options
author | Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> | 2017-05-03 18:44:16 +0530 |
---|---|---|
committer | Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> | 2017-06-19 13:06:34 +0530 |
commit | 4b000d8d84253f97cfe5695b4798e75092509706 (patch) | |
tree | c6dfa62f8a82f83f64c6885696bf8fc62ca2718a /parse_led.py | |
parent | d27c68f40480070a70d17b58af17a9d8a1704ae3 (diff) | |
download | phosphor-led-manager-4b000d8d84253f97cfe5695b4798e75092509706.tar.gz phosphor-led-manager-4b000d8d84253f97cfe5695b4798e75092509706.zip |
LEDS: Provide support to override the default Blink priority
In some cases, it is needed that the Solid-ON action over rules
Blink and this patch adds that support.
Change-Id: Ib0a88b11142ccef3e39ef0a7c6eb3a037c878bc2
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
Diffstat (limited to 'parse_led.py')
-rwxr-xr-x | parse_led.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/parse_led.py b/parse_led.py index 5afe4b0..5392e97 100755 --- a/parse_led.py +++ b/parse_led.py @@ -63,9 +63,10 @@ if __name__ == '__main__': ofile.write(' {\"' + underscore(led_dict) + '\",') ofile.write('phosphor::led::Layout::' + str(list_dict.get('Action', 'Off')) + ',') - ofile.write(str(list_dict.get('DutyOn', 0)) + ',') + ofile.write(str(list_dict.get('DutyOn', 50)) + ',') ofile.write(str(list_dict.get('Period', 0)) + ',') - + priority = str(list_dict.get('Priority', 'Blink')) + ofile.write('phosphor::led::Layout::' + priority + ',') ofile.write('},\n') ofile.write(' }},\n') ofile.write('};\n') |