Fix warning -Wempty-body by adding braces to 'if' stmt body (#2951)
This commit is contained in:
parent
476660f763
commit
4ee17ec3ee
@ -333,7 +333,9 @@ const char * system_event_reasons[] = { "UNSPECIFIED", "AUTH_EXPIRE", "AUTH_LEAV
|
|||||||
#endif
|
#endif
|
||||||
esp_err_t WiFiGenericClass::_eventCallback(void *arg, system_event_t *event)
|
esp_err_t WiFiGenericClass::_eventCallback(void *arg, system_event_t *event)
|
||||||
{
|
{
|
||||||
if(event->event_id < 26) log_d("Event: %d - %s", event->event_id, system_event_names[event->event_id]);
|
if(event->event_id < 26) {
|
||||||
|
log_d("Event: %d - %s", event->event_id, system_event_names[event->event_id]);
|
||||||
|
}
|
||||||
if(event->event_id == SYSTEM_EVENT_SCAN_DONE) {
|
if(event->event_id == SYSTEM_EVENT_SCAN_DONE) {
|
||||||
WiFiScanClass::_scanDone();
|
WiFiScanClass::_scanDone();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user