Skip to content

Commit 41db95d

Browse files
committed
Select boot profile using WiFi Config
1 parent ccb192a commit 41db95d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Firmware/RTK_Surveyor/Form.ino

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,12 @@ Serial.printf("bootProfileNumber: %d\r\n", bootProfileNumber);
600600
{
601601
if (newAPSettings == true) recordSystemSettings(); //If we've recieved settings, record before restart
602602

603+
//Determine which profile to boot
604+
bootProfileNumber -= 1;
605+
if (bootProfileNumber != profileNumber)
606+
recordProfileNumber(bootProfileNumber);
607+
608+
//Reboot the machine
603609
ESP.restart();
604610
}
605611

0 commit comments

Comments
 (0)