Skip to content

Commit 6d04305

Browse files
committed
WiFi: Use reportFatalError in verifyTables
1 parent cabc8d6 commit 6d04305

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Firmware/RTK_Everywhere/WiFi.ino

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3156,18 +3156,14 @@ void RTK_WIFI::verifyTables()
31563156
if (WIFI_AUTH_MAX != wifiAuthorizationNameEntries)
31573157
{
31583158
systemPrintf("ERROR: Fix wifiAuthorizationName list to match wifi_auth_mode_t in esp_wifi_types.h!\r\n");
3159-
while (1)
3160-
{
3161-
}
3159+
reportFatalError("Fix wifiAuthorizationName list to match wifi_auth_mode_t in esp_wifi_types.h!");
31623160
}
31633161

31643162
// Verify the start name table
31653163
if (WIFI_MAX_START != (1 << wifiStartNamesEntries))
31663164
{
31673165
systemPrintf("ERROR: Fix wifiStartNames list to match list of defines!\r\n");
3168-
while (1)
3169-
{
3170-
}
3166+
reportFatalError("Fix wifiStartNames list to match list of defines!!");
31713167
}
31723168
}
31733169

0 commit comments

Comments
 (0)