Skip to content

Commit

Permalink
Use saved SSID as LAST_SSID, when no successfull connection was possi…
Browse files Browse the repository at this point in the history
…ble #355, thanks to @nona00 !

update changelog & revision
  • Loading branch information
tueddy committed Dec 18, 2024
1 parent e639e22 commit bfccf8f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## DEV-branch

* 18.12.2024: Use saved SSID as LAST_SSID, when no successfull connection was possible #355, thanks to @nona00 !
* 18.12.2024: Check if #POWER defined, thanks to @QDaniel !
* 18.12.2024: Prepare for Arduino 3.1.0
* 16.12.2024: Add verbose log to indicate, that the restart is on purpose (#356), thanks to @thebino !
* 16.12.2024: LPCD: Only wake up if card is present in NVS (#352), thanks to @fox34 !
* 25.11.2024: Moving some settings to the Web UI (#350), thanks to @trainbird !
Expand Down
6 changes: 6 additions & 0 deletions src/Wlan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,12 @@ void Wlan_Init(void) {
ipMode = buffer;
}
Log_Printf(LOGLEVEL_DEBUG, "SSID: %s, Password: %s, %s", s.ssid.c_str(), (s.password.length()) ? "yes" : "no", ipMode);

if (gPrefsSettings.isKey("LAST_SSID") == false) {
gPrefsSettings.putString("LAST_SSID", s.ssid);
Log_Println("Warn: using saved SSID as LAST_SSID", LOGLEVEL_NOTICE);
}

return true;
});

Expand Down
2 changes: 1 addition & 1 deletion src/revision.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma once

#include "gitrevision.h"
constexpr const char softwareRevision[] = "Software-revision: 20241216-1-DEV";
constexpr const char softwareRevision[] = "Software-revision: 20241218-1-DEV";

0 comments on commit bfccf8f

Please sign in to comment.