From 39349c0fcac0f34caa8ec95bcd6cf25731752005 Mon Sep 17 00:00:00 2001 From: Panagiotis Vasilopoulos Date: Sat, 20 Mar 2021 10:48:36 +0200 Subject: [PATCH] Made input for cooler boosting case-insensitive Signed-off-by: Panagiotis Vasilopoulos --- isw | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/isw b/isw index 4bd00e5..790343e 100755 --- a/isw +++ b/isw @@ -44,9 +44,9 @@ def ec_boost(value): cba = int(cfgp.get(ap, 'cooler_boost_address'),16) cb_off = int(cfgp.get('COOLER_BOOST', 'cooler_boost_off')) cb_on = int(cfgp.get('COOLER_BOOST', 'cooler_boost_on')) - if value == 'off': + if value.lower() == 'off': single_write(cba, cb_off) - elif value == 'on': + elif value.lower() == 'on': single_write(cba, cb_on) else: print('Error: Only '+Text.ULINED+'off'+Text.CLEAR+' and '