Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nseidle committed Dec 13, 2024
1 parent 666d1de commit d03563e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
3 changes: 1 addition & 2 deletions Firmware/RTK_Everywhere/Network.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,6 @@ void networkUpdate()
// If there are no consumers, but the network is online, shut down all networks
if (networkConsumers() == 0 && networkIsOnline() == true)
{

if (systemState == STATE_WIFI_CONFIG)
{
// The STATE_WIFI_CONFIG is in control of WiFi. Don't allow the network layer to shut it down
Expand Down Expand Up @@ -1575,7 +1574,7 @@ uint8_t networkConsumers()
if (consumerType & (1 << 7))
systemPrint("OTA Version Check, ");
if (consumerType & (1 << 8))
systemPrint("OTA Scheduled Check, ");
systemPrint("OTA Firmware Update, ");
}

systemPrintln();
Expand Down
8 changes: 4 additions & 4 deletions Firmware/RTK_Everywhere/States.ino
Original file line number Diff line number Diff line change
Expand Up @@ -472,14 +472,14 @@ void stateUpdate()
// If a firmware version was requested, and obtained, report it back to the web page
if (strlen(otaReportedVersion) > 0)
{
if(settings.debugWebConfig)
systemPrintln("Webconfig: Reporting firmware version");

createFirmwareVersionString(settingsCSV);

if (settings.debugWebConfig)
systemPrintf("Webconfig: Firmware version requested. Sending: %s\r\n", settingsCSV);

sendStringToWebsocket(settingsCSV);

otaReportedVersion[0] = '\0'; //Zero out the reported version
otaReportedVersion[0] = '\0'; // Zero out the reported version
}
}

Expand Down
5 changes: 1 addition & 4 deletions Firmware/RTK_Everywhere/menuCommands.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1313,12 +1313,9 @@ SettingValueResponse updateSettingWithValue(bool inCommands, const char *setting

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

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

// Erase reported version. Once the reported version comes back, transmit to webpage
otaReportedVersion[0] = '\0';

// Get firmware version from server
// otaCheckVersion will call wifiConnect if needed
// if (otaCheckVersion(reportedVersion, sizeof(reportedVersion)))
Expand Down

0 comments on commit d03563e

Please sign in to comment.