Skip to content

Commit 7bfde5d

Browse files
committed
States: Stop WiFi on exit paths from key provisioning
1 parent e90e121 commit 7bfde5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Firmware/RTK_Surveyor/States.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -848,8 +848,7 @@ void updateSystemState()
848848
displayKeysUpdated();
849849
}
850850

851-
// WiFi will be turned off once we exit this state, if no other service needs it
852-
851+
wifiShutdown(); // Turn off WiFi
853852
forceSystemStateUpdate = true; // Imediately go to this new state
854853
changeState(STATE_KEYS_DAYS_REMAINING);
855854
}
@@ -952,6 +951,7 @@ void updateSystemState()
952951
paintKeyProvisionFail(10000); // Device not whitelisted. Show device ID.
953952
changeState(STATE_KEYS_LBAND_ENCRYPTED);
954953
}
954+
wifiShutdown(); // Turn off WiFi
955955
}
956956
break;
957957

0 commit comments

Comments
 (0)