mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 13:16:32 +00:00
fix minimal compiler failure
This commit is contained in:
parent
3ffa536b9a
commit
9fcdada673
@ -624,7 +624,9 @@ void SettingsSave(uint8_t rotate) {
|
|||||||
Settings->cfg_size = sizeof(TSettings);
|
Settings->cfg_size = sizeof(TSettings);
|
||||||
Settings->cfg_crc = GetSettingsCrc(); // Keep for backward compatibility in case of fall-back just after upgrade
|
Settings->cfg_crc = GetSettingsCrc(); // Keep for backward compatibility in case of fall-back just after upgrade
|
||||||
Settings->cfg_crc32 = GetSettingsCrc32();
|
Settings->cfg_crc32 = GetSettingsCrc32();
|
||||||
|
#ifdef USE_COUNTER
|
||||||
CounterInterruptDisable(true);
|
CounterInterruptDisable(true);
|
||||||
|
endif
|
||||||
#ifdef ESP8266
|
#ifdef ESP8266
|
||||||
#ifdef USE_UFILESYS
|
#ifdef USE_UFILESYS
|
||||||
TfsSaveFile(TASM_FILE_SETTINGS, (const uint8_t*)Settings, sizeof(TSettings));
|
TfsSaveFile(TASM_FILE_SETTINGS, (const uint8_t*)Settings, sizeof(TSettings));
|
||||||
@ -650,9 +652,10 @@ void SettingsSave(uint8_t rotate) {
|
|||||||
}
|
}
|
||||||
#endif // FIRMWARE_MINIMAL
|
#endif // FIRMWARE_MINIMAL
|
||||||
RtcSettingsSave();
|
RtcSettingsSave();
|
||||||
|
#ifdef USE_COUNTER
|
||||||
CounterInterruptDisable(false);
|
CounterInterruptDisable(false);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void SettingsLoad(void) {
|
void SettingsLoad(void) {
|
||||||
#ifdef ESP8266
|
#ifdef ESP8266
|
||||||
// Load configuration from optional file and flash (eeprom and 7 additonal slots) if first valid load does not stop_flash_rotate
|
// Load configuration from optional file and flash (eeprom and 7 additonal slots) if first valid load does not stop_flash_rotate
|
||||||
|
Loading…
x
Reference in New Issue
Block a user