Skip to content

Commit

Permalink
Fix version # per G4KLX, fix OLED IP spacing in idle mode, improve au…
Browse files Browse the repository at this point in the history
…to-ap stats in OLED
  • Loading branch information
Chipster committed Jun 11, 2023
1 parent 3a7d087 commit 8837696
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions OLED.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -306,18 +306,18 @@ 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...
m_display.setCursor(0,OLED_LINE3);
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)
Expand Down
2 changes: 1 addition & 1 deletion Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
#if !defined(VERSION_H)
#define VERSION_H

const char* VERSION = "20230611";
const char* VERSION = "20220523";

#endif

0 comments on commit 8837696

Please sign in to comment.