Default Wifi config to internal.
authorJoseph Coffland <joseph@cauldrondevelopment.com>
Thu, 15 Apr 2021 21:26:21 +0000 (14:26 -0700)
committerJoseph Coffland <joseph@cauldrondevelopment.com>
Thu, 15 Apr 2021 21:26:21 +0000 (14:26 -0700)
CHANGELOG.md
scripts/check-config-vars.py
src/js/settings-network.js

index 3b234727ab7e54205fb6873f6a2c4aa360b1f2e8..6f36ddf70acadd18effddbb81914cdc07d30cf54 100644 (file)
@@ -25,6 +25,7 @@ Buildbotics CNC Controller Firmware Changelog
  - Fixed splash screen centering.
  - Much improved onscreen keyboard for touch screen operation. #292
  - Handle pause duing seeking operation correctly.
+ - Default Wifi config to internal.
 
 ## v0.4.16
  - Improved axis under/over warning tooltip.
index 6fd567a9b5e5af63735fbf42a8be6e94c3fb6824..6c255ab9e686e2c617d888b06ce2fb989bf698f3 100755 (executable)
@@ -7,7 +7,7 @@ import sys
 import json
 
 templ = json.load(open('src/resources/config-template.json', 'r'))
-vars = json.load(open('avr/build/vars.json', 'r'))
+vars = json.load(open('src/avr/build/vars.json', 'r'))
 
 
 def check(section):
index 14911bebae1a8e9f8a8415875409627479d0e0f1..739f30605acca6759d2f80afe1875edde5875226 100644 (file)
@@ -67,7 +67,7 @@ module.exports = {
 
     api.get('wifi').done(function (config) {
       this.wifi_mode     = config.mode;
-      this.wifi_internal = config.internal;
+      this.wifi_internal = config.internal == undefined || config.internal;
       this.wifi_ssid     = config.ssid;
       this.wifi_ch       = config.channel;
     }.bind(this));