From 8837696b23a27c4320d882931711bbb7a94262ee Mon Sep 17 00:00:00 2001 From: Chipster Date: Sun, 11 Jun 2023 14:14:39 -0500 Subject: [PATCH] Fix version # per G4KLX, fix OLED IP spacing in idle mode, improve auto-ap stats in OLED --- OLED.cpp | 8 ++++---- Version.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/OLED.cpp b/OLED.cpp index 3955f0ad..2d0f7b74 100644 --- a/OLED.cpp +++ b/OLED.cpp @@ -285,7 +285,7 @@ void COLED::setIdleInt() } // Read ssid value from /etc/hostapd.conf if it exists... std::string ssid; - std::ifstream configFile("/etc/hostapd.conf"); + std::ifstream configFile("/etc/hostapd/hostapd.conf"); if (configFile.is_open()) { std::string line; while (std::getline(configFile, line)) { @@ -306,10 +306,10 @@ void COLED::setIdleInt() m_display.setCursor(0, OLED_LINE3); m_display.setTextSize(1); m_display.printf("Auto-AP Running..."); - m_display.setCursor(0, OLED_LINE4); + m_display.setCursor(0, OLED_LINE5); m_display.setTextSize(1); m_display.printf("SSID: %s", ssid.c_str()); - m_display.setCursor(0, OLED_LINE5); + m_display.setCursor(0, OLED_LINE6); m_display.setTextSize(1); m_display.printf("IP: %s", m_ipaddress.c_str()); } else { // Connected to network - no Auto-AP mode; normal display layout... @@ -317,7 +317,7 @@ void COLED::setIdleInt() m_display.setTextSize(1); m_display.print(" -IDLE-"); m_display.setCursor(0, OLED_LINE5); - m_display.printf(" %s", m_ipaddress.c_str()); + m_display.printf("%s", m_ipaddress.c_str()); } if (m_displayScroll && m_displayLogoScreensaver) diff --git a/Version.h b/Version.h index 75f257cf..f5c6244d 100644 --- a/Version.h +++ b/Version.h @@ -19,6 +19,6 @@ #if !defined(VERSION_H) #define VERSION_H -const char* VERSION = "20230611"; +const char* VERSION = "20220523"; #endif