Browse Source

Add files via upload

Configuration added for SML/OBIS
pull/1080/head
oberfritze 2 years ago
committed by GitHub
parent
commit
2f5177166a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/app.cpp
  2. 4
      src/platformio.ini

6
src/app.cpp

@ -158,7 +158,9 @@ void app::loopStandard(void) {
#endif #endif
#ifdef AHOY_SML_OBIS_SUPPORT #ifdef AHOY_SML_OBIS_SUPPORT
if (mConfig->sml_obis.ir_connected) {
sml_loop (); sml_loop ();
}
#endif #endif
} }
@ -227,7 +229,9 @@ void app::tickNtpUpdate(void) {
mSys.cleanup_history(); mSys.cleanup_history();
#ifdef AHOY_SML_OBIS_SUPPORT #ifdef AHOY_SML_OBIS_SUPPORT
if (mConfig->sml_obis.ir_connected) {
sml_cleanup_history (); sml_cleanup_history ();
}
#endif #endif
} }
@ -365,7 +369,9 @@ void app::tickMidnight(void) {
} }
mSys.cleanup_history (); mSys.cleanup_history ();
#ifdef AHOY_SML_OBIS_SUPPORT #ifdef AHOY_SML_OBIS_SUPPORT
if (mConfig->sml_obis.ir_connected) {
sml_cleanup_history(); sml_cleanup_history();
}
#endif #endif
} }

4
src/platformio.ini

@ -9,8 +9,8 @@
; https://docs.platformio.org/page/projectconf.html ; https://docs.platformio.org/page/projectconf.html
[platformio] [platformio]
src_dir = c:\AhoiDTU\src src_dir = .
include_dir = c:\AhoiDTU\src include_dir = .
[env] [env]
board = d1_mini board = d1_mini

Loading…
Cancel
Save