From fd136cf0a7e398e78a771d0f12d3f767f931732a Mon Sep 17 00:00:00 2001 From: Caz Yokoyama Date: Sun, 9 Jan 2022 10:18:08 -0800 Subject: [PATCH] Show SSID instead of ?. --- ognbase/OLED.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ognbase/OLED.cpp b/ognbase/OLED.cpp index 599a438..95c1fc1 100644 --- a/ognbase/OLED.cpp +++ b/ognbase/OLED.cpp @@ -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); @@ -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();