Merge pull request #876 from grokbeer/watchdog-reboot

Have watchdog plugin reboot system rather than restart application
This commit is contained in:
Simone Margaritelli
2021-04-18 15:14:59 +02:00
committed by GitHub

View File

@ -33,4 +33,4 @@ class Watchdog(plugins.Plugin):
logging.info('[WATCHDOG] Blind-Bug detected. Restarting.')
mode = 'MANU' if agent.mode == 'manual' else 'AUTO'
import pwnagotchi
pwnagotchi.restart(mode=mode)
pwnagotchi.reboot(mode=mode)