This commit is contained in:
Tristan Smith 2024-03-21 21:05:43 -04:00
commit 815b3bfc0a

View file

@ -60,3 +60,14 @@ if args.dynamic == 'on':
enable_dynamic_fan_control() enable_dynamic_fan_control()
elif args.dynamic == 'off': elif args.dynamic == 'off':
disable_dynamic_fan_control() disable_dynamic_fan_control()
if not (args.power or args.fan or args.dynamic):
parser.print_help()
else:
if args.power == 'on':
power_on()
elif args.power == 'off':
# Here, you can add a function to power off if desired
pass
if args.fan is not None:
set_fan_speed(args.fan)