Skip to content

Commit

Permalink
Merge pull request #53 from stefang/main
Browse files Browse the repository at this point in the history
Fix the WiFi mode checking to work properly in AP mode.
  • Loading branch information
hideakitai authored Jun 2, 2024
2 parents 49ec345 + b87ce40 commit bf3773c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ArduinoOSC/ArduinoOSCCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ namespace osc {

bool isWiFiModeAP() {
auto mode = WiFi.getMode();
return (mode == WIFI_STA) || (mode == WIFI_AP_STA);
return (mode == WIFI_AP) || (mode == WIFI_AP_STA);
}
#endif
};
Expand Down

0 comments on commit bf3773c

Please sign in to comment.