mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 09:49:32 +02:00
Stop erroneous events when saving an empty SSID/pw
This commit is contained in:
parent
980e450871
commit
73c6821a9a
1 changed files with 4 additions and 2 deletions
|
@ -207,9 +207,11 @@ void store_settings() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!settings.putString("SSID", String(ssid.c_str()))) {
|
if (!settings.putString("SSID", String(ssid.c_str()))) {
|
||||||
|
if (ssid != "")
|
||||||
set_event(EVENT_PERSISTENT_SAVE_INFO, 1);
|
set_event(EVENT_PERSISTENT_SAVE_INFO, 1);
|
||||||
}
|
}
|
||||||
if (!settings.putString("PASSWORD", String(password.c_str()))) {
|
if (!settings.putString("PASSWORD", String(password.c_str()))) {
|
||||||
|
if (password != "")
|
||||||
set_event(EVENT_PERSISTENT_SAVE_INFO, 2);
|
set_event(EVENT_PERSISTENT_SAVE_INFO, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue