Have watchdog plugin reboot system rather than restart application

Signed-off-by: grokbeer <1428380+grokbeer@users.noreply.github.com>
This commit is contained in:
grokbeer 2020-05-08 21:58:26 +12:00
parent 05b235c38b
commit 37342c0685

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)