Skip to content

Commit 62090b6

Browse files
authored
Merge pull request #681 from LeeLeahy2/no-wifi-exiting-key-provisioning
States: Stop WiFi on exit paths from key provisioning
2 parents 6fb5b05 + 7bfde5d commit 62090b6

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
#endif // COMPILE_L_BAND

0 commit comments

Comments
 (0)