Skip to content

Commit d03563e

Browse files
committed
Update comments
1 parent 666d1de commit d03563e

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

Firmware/RTK_Everywhere/Network.ino

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,6 @@ void networkUpdate()
13321332
// If there are no consumers, but the network is online, shut down all networks
13331333
if (networkConsumers() == 0 && networkIsOnline() == true)
13341334
{
1335-
13361335
if (systemState == STATE_WIFI_CONFIG)
13371336
{
13381337
// The STATE_WIFI_CONFIG is in control of WiFi. Don't allow the network layer to shut it down
@@ -1575,7 +1574,7 @@ uint8_t networkConsumers()
15751574
if (consumerType & (1 << 7))
15761575
systemPrint("OTA Version Check, ");
15771576
if (consumerType & (1 << 8))
1578-
systemPrint("OTA Scheduled Check, ");
1577+
systemPrint("OTA Firmware Update, ");
15791578
}
15801579

15811580
systemPrintln();

Firmware/RTK_Everywhere/States.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -472,14 +472,14 @@ void stateUpdate()
472472
// If a firmware version was requested, and obtained, report it back to the web page
473473
if (strlen(otaReportedVersion) > 0)
474474
{
475-
if(settings.debugWebConfig)
476-
systemPrintln("Webconfig: Reporting firmware version");
477-
478475
createFirmwareVersionString(settingsCSV);
479476

477+
if (settings.debugWebConfig)
478+
systemPrintf("Webconfig: Firmware version requested. Sending: %s\r\n", settingsCSV);
479+
480480
sendStringToWebsocket(settingsCSV);
481481

482-
otaReportedVersion[0] = '\0'; //Zero out the reported version
482+
otaReportedVersion[0] = '\0'; // Zero out the reported version
483483
}
484484
}
485485

Firmware/RTK_Everywhere/menuCommands.ino

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,12 +1313,9 @@ SettingValueResponse updateSettingWithValue(bool inCommands, const char *setting
13131313

13141314
sendStringToWebsocket((char *)"checkingNewFirmware,1,"); // Tell the config page we received their request
13151315

1316-
// Indicate to the network that we need access
1316+
// Indicate to the OTA state machine that we need to do a version check
13171317
otaRequestFirmwareVersionCheck = true;
13181318

1319-
// Erase reported version. Once the reported version comes back, transmit to webpage
1320-
otaReportedVersion[0] = '\0';
1321-
13221319
// Get firmware version from server
13231320
// otaCheckVersion will call wifiConnect if needed
13241321
// if (otaCheckVersion(reportedVersion, sizeof(reportedVersion)))

0 commit comments

Comments
 (0)