mirror of
https://github.com/KevinMidboe/fanController.git
synced 2025-10-29 17:40:22 +00:00
Added check for last input item in fanController main function
This commit is contained in:
@@ -40,7 +40,7 @@ def turnFanOFF():
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
arg = argv[1]
|
||||
arg = argv[-1]
|
||||
if (arg == 'on'):
|
||||
print(turnFanON())
|
||||
elif (arg == 'off'):
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user