Skip to content

Commit fa035f8

Browse files
committed
Pico: remove unnecessary c_str calls
1 parent 7c35b54 commit fa035f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/network_interfaces/ws_networking_pico.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class ws_networking_pico : public Wippersnapper {
112112

113113
// Was the network within secrets.json found?
114114
for (int i = 0; i < n; ++i) {
115-
if (strcmp(_ssid, WiFi.SSID(i).c_str()) == 0) {
115+
if (strcmp(_ssid, WiFi.SSID(i)) == 0) {
116116
WS_DEBUG_PRINT("SSID (");
117117
WS_DEBUG_PRINT(_ssid);
118118
WS_DEBUG_PRINT(") found! RSSI: ");
@@ -122,7 +122,7 @@ class ws_networking_pico : public Wippersnapper {
122122
if (WS._isWiFiMulti) {
123123
// multi network mode
124124
for (int j = 0; j < WS_MAX_ALT_WIFI_NETWORKS; j++) {
125-
if (strcmp(WS._multiNetworks[j].ssid, WiFi.SSID(i).c_str()) == 0) {
125+
if (strcmp(WS._multiNetworks[j].ssid, WiFi.SSID(i)) == 0) {
126126
WS_DEBUG_PRINT("SSID (");
127127
WS_DEBUG_PRINT(WS._multiNetworks[j].ssid);
128128
WS_DEBUG_PRINT(") found! RSSI: ");

0 commit comments

Comments
 (0)