Skip to content

Commit f520466

Browse files
committed
Notify incomingSettings wrap-around
1 parent d66c96d commit f520466

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Firmware/RTK_Everywhere/WebServer.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,6 +1335,8 @@ static esp_err_t ws_handler(httpd_req_t *req)
13351335
for (int i = 0; i < ws_pkt.len; i++)
13361336
{
13371337
incomingSettings[incomingSettingsSpot++] = ws_pkt.payload[i];
1338+
if (incomingSettingsSpot == AP_CONFIG_SETTING_SIZE)
1339+
systemPrintln("incomingSettings wrap-around. Increase AP_CONFIG_SETTING_SIZE");
13381340
incomingSettingsSpot %= AP_CONFIG_SETTING_SIZE;
13391341
}
13401342
timeSinceLastIncomingSetting = millis();

0 commit comments

Comments
 (0)