Use > to check for values below -1

This commit is contained in:
Sun 2019-04-21 22:24:53 -07:00
parent 650ee8fd97
commit 88fbd9a3c1

View File

@ -96,7 +96,7 @@ void PowerButtonObserveTask::WaitForPowerButton() {
const FatalConfig *config = GetFatalConfig();
TimeoutHelper reboot_helper(config->quest_reboot_interval_second * 1000000000UL);
if (config->fatal_auto_reboot_interval != -1) {
if (config->fatal_auto_reboot_interval > -1) {
svcSleepThread(config->fatal_auto_reboot_interval);
bpcRebootSystem();
return;