mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
make standalone compile
This commit is contained in:
@@ -75,6 +75,7 @@ class DummySettings {
|
||||
uint8_t tx_power = 0;
|
||||
|
||||
uint8_t provisionMode = 0;
|
||||
uint32_t publish_time_water = 0;
|
||||
|
||||
static void read(DummySettings & settings, JsonObject root) {};
|
||||
static void read(DummySettings & settings) {};
|
||||
|
||||
@@ -41,6 +41,10 @@ class Preferences {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int getChar(const char * key, uint8_t defaultValue = 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
double getDouble(const char * key, double defaultValue = NAN) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -90,7 +90,12 @@ StateUpdateResult WebSettings::update(JsonObject root, WebSettings & settings) {
|
||||
EMSESP::nvs_.putString("boot", (const char *)EMSESP_DEFAULT_BOARD_PROFILE);
|
||||
}
|
||||
|
||||
bool psram = ESP.getPsramSize() > 0; // System::PSram() is initializd later
|
||||
#ifndef EMSESP_STANDALONE
|
||||
bool psram = ESP.getPsramSize() > 0; // System::PSram() is initialized later
|
||||
#else
|
||||
bool psram = false;
|
||||
#endif
|
||||
|
||||
if (System::load_board_profile(data, settings.board_profile.c_str())) {
|
||||
if (settings.board_profile == "CUSTOM") { //read pins, fallback to S32
|
||||
data = {(int8_t)(root["led_gpio"] | 2),
|
||||
|
||||
Reference in New Issue
Block a user