mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 20:26:41 +00:00
Annotate LOG_FATAL
This commit is contained in:
parent
ec57fa0463
commit
32c6dcfbd7
@ -1264,9 +1264,7 @@ void dispatch_service(const char*, const char* payload, uint8_t source)
|
|||||||
static void dispatch_add_command(const char* p_cmdstr, void (*func)(const char*, const char*, uint8_t))
|
static void dispatch_add_command(const char* p_cmdstr, void (*func)(const char*, const char*, uint8_t))
|
||||||
{
|
{
|
||||||
if(nCommands >= sizeof(commands) / sizeof(haspCommand_t)) {
|
if(nCommands >= sizeof(commands) / sizeof(haspCommand_t)) {
|
||||||
LOG_FATAL(TAG_MSGR, F("CMD_OVERFLOW %d"), nCommands);
|
LOG_FATAL(TAG_MSGR, F("CMD_OVERFLOW %d"), nCommands); // Needs to be in curly braces
|
||||||
while(1) {
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
commands[nCommands].p_cmdstr = p_cmdstr;
|
commands[nCommands].p_cmdstr = p_cmdstr;
|
||||||
commands[nCommands].func = func;
|
commands[nCommands].func = func;
|
||||||
|
@ -433,17 +433,11 @@ void wifiSetup()
|
|||||||
|
|
||||||
// check for the presence of the shield:
|
// check for the presence of the shield:
|
||||||
if(WiFiSpi.status() == WL_NO_SHIELD) {
|
if(WiFiSpi.status() == WL_NO_SHIELD) {
|
||||||
LOG_FATAL(TAG_WIFI, F("WiFi shield not present"));
|
LOG_FATAL(TAG_WIFI, F("WiFi shield not present")); // Needs to be in curly braces
|
||||||
// don't continue:
|
|
||||||
while(true)
|
|
||||||
;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!WiFiSpi.checkProtocolVersion()) {
|
if(!WiFiSpi.checkProtocolVersion()) {
|
||||||
LOG_FATAL(TAG_WIFI, F("Protocol version mismatch. Please upgrade the firmware"));
|
LOG_FATAL(TAG_WIFI, F("Protocol version mismatch. Please upgrade the firmware")); // Needs to be in curly braces
|
||||||
// don't continue:
|
|
||||||
while(true)
|
|
||||||
;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// attempt to connect to Wifi network
|
// attempt to connect to Wifi network
|
||||||
|
Loading…
x
Reference in New Issue
Block a user