remove default argument for saveConfig()

This commit is contained in:
cyberman54 2021-04-07 15:15:41 +02:00
parent c9b0990203
commit 5c5752805b
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
extern configData_t cfg; extern configData_t cfg;
void saveConfig(bool erase = false); void saveConfig(bool erase);
bool loadConfig(void); bool loadConfig(void);
void eraseConfig(void); void eraseConfig(void);
int version_compare(const String v1, const String v2); int version_compare(const String v1, const String v2);

View File

@ -197,7 +197,7 @@ void updateState(void) {
memcpy(cfg.bsecstate, bsecstate_buffer, BSEC_MAX_STATE_BLOB_SIZE); memcpy(cfg.bsecstate, bsecstate_buffer, BSEC_MAX_STATE_BLOB_SIZE);
cfg.bsecstate[BSEC_MAX_STATE_BLOB_SIZE] = BSEC_MAX_STATE_BLOB_SIZE; cfg.bsecstate[BSEC_MAX_STATE_BLOB_SIZE] = BSEC_MAX_STATE_BLOB_SIZE;
ESP_LOGI(TAG, "saving BSEC state to NVRAM"); ESP_LOGI(TAG, "saving BSEC state to NVRAM");
saveConfig(); saveConfig(false);
} }
} }
#endif #endif