board profiles: pre-configured pin layouts #11

This commit is contained in:
proddy
2021-03-27 10:30:28 +01:00
parent 6d3feaf81c
commit cafc6103ea
7 changed files with 52 additions and 41 deletions

View File

@@ -1090,13 +1090,12 @@ void EMSESP::start() {
// start the file system
#ifndef EMSESP_STANDALONE
if (!LITTLEFS.begin(true)) {
Serial.println("LITTLEFS Mount Failed");
Serial.println("LITTLEFS Mount Failed. EMS-ESP stopped.");
return;
}
#endif
esp8266React.begin(); // loads system settings (wifi, mqtt, etc)
webSettingsService.begin(); // load EMS-ESP specific settings
esp8266React.begin(); // loads system settings (wifi, mqtt, etc)
system_.check_upgrade(); // do any upgrades
@@ -1105,7 +1104,10 @@ void EMSESP::start() {
#include "device_library.h"
};
console_.start(); // telnet and serial console
console_.start(); // telnet and serial console
webSettingsService.begin(); // load EMS-ESP specific settings, like GPIO configurations
mqtt_.start(); // mqtt init
system_.start(heap_start); // starts syslog, uart, sets version, initializes LED. Requires pre-loaded settings.
shower_.start(); // initialize shower timer and shower alert