diff --git a/src/app.cpp b/src/app.cpp index c755f0af..226e9ecc 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -229,9 +229,8 @@ void app::tickNtpUpdate(void) { mSys.cleanup_history(); #ifdef AHOY_SML_OBIS_SUPPORT - if (mConfig->sml_obis.ir_connected) { - sml_cleanup_history (); - } + // design: allways try to clean up + sml_cleanup_history (); #endif } @@ -369,9 +368,8 @@ void app::tickMidnight(void) { } mSys.cleanup_history (); #ifdef AHOY_SML_OBIS_SUPPORT - if (mConfig->sml_obis.ir_connected) { - sml_cleanup_history(); - } + // design: allways try to clean up + sml_cleanup_history(); #endif } diff --git a/src/app.h b/src/app.h index 900e435b..99c1e01a 100644 --- a/src/app.h +++ b/src/app.h @@ -204,6 +204,7 @@ class app : public IApp, public ah::Scheduler { else Scheduler::setTimestamp(newTime); } + void show_history (String path); HmSystemType mSys; @@ -269,7 +270,6 @@ class app : public IApp, public ah::Scheduler { DBGPRINTLN(""); }*/ void check_hist_file (File file); - void show_history (String path); innerLoopCb mInnerLoopCb;