Update service.py

This commit is contained in:
gunu3371 2024-07-14 01:45:25 +09:00 committed by GitHub
parent f5bbfec17f
commit 7855f04eed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -122,10 +122,10 @@ while not killer.kill_now:
ups.shutdown()
os.system("shutdown now")
log.crit('battery is too low Shut down system')
elif pw <= 3800:
log.warn('battery is low')
elif pw <= 3650:
log.crit('battery is too low')
elif pw <= 3800:
log.warn('battery is low')
elif ps == "err":
log.crit('UPS hardware error detect')