1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-08-31 18:11:48 +02:00

Added fallback to AP. Useful for current YAML testing

This commit is contained in:
Mitch Bradley
2021-06-04 09:11:58 -10:00
parent d52f9c085e
commit c2efa73baf

View File

@@ -447,6 +447,12 @@ void MachineConfig::afterParse() {
_comms = new Communications();
_comms->_apConfig = new WifiAPConfig();
}
// This is very helpful for testing YAML config files. If things
// screw up, you can still connect and upload a new config.yaml
// TODO - Consider whether we want this for the long term
if (!_comms->_apConfig) {
_comms->_apConfig = new WifiAPConfig();
}
}
size_t MachineConfig::readFile(const char* filename, char*& buffer) {