mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 02:52:11 +01:00
Code cleanup
Enable/Disable radio from the UI to release the receive interrupt. This helps when trying to use Arduino IDE to update firmware.
This commit is contained in:
parent
fd6dc68af0
commit
26714f71b7
8 changed files with 196 additions and 124 deletions
|
|
@ -211,6 +211,10 @@ bool WifiSettings::load() {
|
|||
pref.getString("hostname", this->hostname, sizeof(this->hostname));
|
||||
pref.getString("ssid", this->ssid, sizeof(this->ssid));
|
||||
pref.getString("passphrase", this->passphrase, sizeof(this->passphrase));
|
||||
this->hostname[sizeof(this->hostname) - 1] = '\0';
|
||||
this->ssid[sizeof(this->ssid) - 1] = '\0';
|
||||
this->passphrase[sizeof(this->passphrase) - 1] = '\0';
|
||||
if(strlen(this->hostname) == 0) strlcpy(this->hostname, "ESPSomfyRTS", sizeof(this->hostname));
|
||||
this->ssdpBroadcast = pref.getBool("ssdpBroadcast", true);
|
||||
pref.end();
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue