From 9e34d16e9a3989a55be1c63c3690d2dd7a926a61 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Mon, 30 Jul 2018 12:29:56 +0200 Subject: [PATCH] Fix sonoff-minimal Fix sonoff-minimal from using default settings --- sonoff/_changelog.ino | 1 + sonoff/settings.ino | 2 ++ 2 files changed, 3 insertions(+) diff --git a/sonoff/_changelog.ino b/sonoff/_changelog.ino index 690fe4438..7dcbd0821 100644 --- a/sonoff/_changelog.ino +++ b/sonoff/_changelog.ino @@ -1,4 +1,5 @@ /* 6.1.1c + * Fix sonoff-minimal from using default settings * Add option + to command Rule to concatenate new rule with existing rules (#3365) * Add initial support for sensor MPU6050 (#3352) * Add command SerialSend4 to send binary serial data (#3345) diff --git a/sonoff/settings.ino b/sonoff/settings.ino index 10fbd10ed..1e04128b9 100644 --- a/sonoff/settings.ino +++ b/sonoff/settings.ino @@ -286,8 +286,10 @@ void SettingsLoad() snprintf_P(log_data, sizeof(log_data), PSTR(D_LOG_CONFIG D_LOADED_FROM_FLASH_AT " %X, " D_COUNT " %d"), settings_location, Settings.save_flag); AddLog(LOG_LEVEL_DEBUG); +#ifndef BE_MINIMAL if (bad_crc || (Settings.cfg_holder != (uint16_t)CFG_HOLDER)) { SettingsDefault(); } settings_crc = GetSettingsCrc(); +#endif // BE_MINIMAL RtcSettingsLoad(); }