Skip to content

Commit bff206e

Browse files
committed
WebServer: Add webServerVerifyTables routine
1 parent 2da158b commit bff206e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Firmware/RTK_Everywhere/WebServer.ino

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*------------------------------------------------------------------------------
2-
Form.ino
2+
WebServer.ino
33
44
Start and stop the web-server, provide the form and handle browser input.
55
------------------------------------------------------------------------------*/
@@ -1465,4 +1465,11 @@ void handleUpload()
14651465
}
14661466
}
14671467

1468+
// Verify the web server tables
1469+
void webServerVerifyTables()
1470+
{
1471+
if (webServerStateEntries != WEBSERVER_STATE_MAX)
1472+
reportFatalError("Fix webServerStateNames to match WebServerState");
1473+
}
1474+
14681475
#endif // COMPILE_AP

Firmware/RTK_Everywhere/support.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,7 @@ void verifyTables()
721721
provisioningVerifyTables();
722722
mosaicVerifyTables();
723723
correctionVerifyTables();
724+
webServerVerifyTables();
724725

725726
if (correctionsSource::CORR_NUM >= (int)('x' - 'a'))
726727
reportFatalError("Too many correction sources");

0 commit comments

Comments
 (0)