BUG: Wifi configuration

This commit is contained in:
Robin Davies
2022-03-12 17:20:02 -05:00
parent cd56f7f71a
commit 7919c08b79
4 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{ {
"socket_server_port": 80, "socket_server_port": 8080,
"socket_server_address": "*", "socket_server_address": "*",
"debug": true, "debug": true,
"max_upload_size": 1048576, "max_upload_size": 1048576,
+3
View File
@@ -194,6 +194,9 @@ const WifiConfigDialog = withStyles(styles, { withTheme: true })(
wifiConfigSettings.enable = this.state.enabled; wifiConfigSettings.enable = this.state.enabled;
wifiConfigSettings.hotspotName = this.state.name; wifiConfigSettings.hotspotName = this.state.name;
wifiConfigSettings.countryCode = this.state.countryCode;
wifiConfigSettings.channel = this.state.channel;
if (this.state.newPassword.length === 0 || !this.state.enabled) if (this.state.newPassword.length === 0 || !this.state.enabled)
{ {
wifiConfigSettings.hasPassword = false; wifiConfigSettings.hasPassword = false;
+1 -1
View File
@@ -33,7 +33,7 @@ export default class WifiConfigSettings {
return this; return this;
} }
clone() : WifiConfigSettings { clone() : WifiConfigSettings {
return this.deserialize(this); return new WifiConfigSettings().deserialize(this);
} }
valid: boolean = true; valid: boolean = true;
wifiWarningGiven: boolean = false; wifiWarningGiven: boolean = false;
+1 -1
View File
@@ -356,7 +356,7 @@ private:
governorMonitorThread.SetGovernor(governor); governorMonitorThread.SetGovernor(governor);
result = 0; result = 0;
} }
else if (command == "WifiConfigSettings ") else if (command == "WifiConfigSettings")
{ {
std::stringstream ss(args); std::stringstream ss(args);
WifiConfigSettings settings; WifiConfigSettings settings;