Fix sonoff-minimal

Fix sonoff-minimal from using default settings
This commit is contained in:
Theo Arends 2018-07-30 12:29:56 +02:00
parent 705b99cfba
commit 9e34d16e9a
2 changed files with 3 additions and 0 deletions

View File

@ -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)

View File

@ -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();
}