From 5c5752805b2635fc5bae8af9d458b731db16ba18 Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Wed, 7 Apr 2021 15:15:41 +0200 Subject: [PATCH] remove default argument for saveConfig() --- include/configmanager.h | 2 +- src/bmesensor.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configmanager.h b/include/configmanager.h index e9c5e7c0..a8be749c 100644 --- a/include/configmanager.h +++ b/include/configmanager.h @@ -7,7 +7,7 @@ extern configData_t cfg; -void saveConfig(bool erase = false); +void saveConfig(bool erase); bool loadConfig(void); void eraseConfig(void); int version_compare(const String v1, const String v2); diff --git a/src/bmesensor.cpp b/src/bmesensor.cpp index 6baa0f1c..eada87ff 100644 --- a/src/bmesensor.cpp +++ b/src/bmesensor.cpp @@ -197,7 +197,7 @@ void updateState(void) { memcpy(cfg.bsecstate, bsecstate_buffer, 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"); - saveConfig(); + saveConfig(false); } } #endif