Skip to content

Commit

Permalink
CazYokoyama Pull request #30 - Show SSID instead of ?.
Browse files Browse the repository at this point in the history
  • Loading branch information
roema committed Jan 29, 2022
2 parents d228539 + fd136cf commit 119021e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ognbase/OLED.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ void OLED_info(bool ntp)
snprintf(buf, sizeof(buf), "ID: %06X", ThisAircraft.addr);
display.drawString(0, 0, buf);

snprintf(buf, sizeof(buf), "SSID: %s", WiFi.SSID());
snprintf(buf, sizeof(buf), "SSID: %s", WiFi.SSID().c_str());
display.drawString(0, 9, buf);

snprintf(buf, sizeof(buf), "CS: %s", ogn_callsign);
Expand Down Expand Up @@ -262,7 +262,7 @@ void OLED_info(bool ntp)
for (int b=0; b <= bars; b++)
display.fillRect(100 + (b * 5), 40 - (b * 6), 3, b * 6);

snprintf(buf, sizeof(buf), "connected to %s", WiFi.SSID());
snprintf(buf, sizeof(buf), "connected to %s", WiFi.SSID().c_str());
display.drawString(0, 54, buf);

display.display();
Expand Down

0 comments on commit 119021e

Please sign in to comment.