Skip to content

Commit 319507f

Browse files
committed
Fix warning -Wempty-body by adding braces to 'if' stmt body
1 parent 7d78247 commit 319507f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: libraries/WiFi/src/WiFiGeneric.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -333,10 +333,11 @@ const char * system_event_reasons[] = { "UNSPECIFIED", "AUTH_EXPIRE", "AUTH_LEAV
333333
#endif
334334
esp_err_t WiFiGenericClass::_eventCallback(void *arg, system_event_t *event)
335335
{
336-
if(event->event_id < 26) log_d("Event: %d - %s", event->event_id, system_event_names[event->event_id]);
336+
if(event->event_id < 26) {
337+
log_d("Event: %d - %s", event->event_id, system_event_names[event->event_id]);
338+
}
337339
if(event->event_id == SYSTEM_EVENT_SCAN_DONE) {
338340
WiFiScanClass::_scanDone();
339-
340341
} else if(event->event_id == SYSTEM_EVENT_STA_START) {
341342
WiFiSTAClass::_setStatus(WL_DISCONNECTED);
342343
setStatusBits(STA_STARTED_BIT);

0 commit comments

Comments
 (0)