Browse Source
Add files via upload
Configuration added for SML/OBIS
pull/1080/head
oberfritze
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
11 additions and
5 deletions
-
src/app.cpp
-
src/platformio.ini
|
|
@ -158,7 +158,9 @@ void app::loopStandard(void) { |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifdef AHOY_SML_OBIS_SUPPORT |
|
|
|
if (mConfig->sml_obis.ir_connected) { |
|
|
|
sml_loop (); |
|
|
|
} |
|
|
|
#endif |
|
|
|
} |
|
|
|
|
|
|
@ -227,7 +229,9 @@ void app::tickNtpUpdate(void) { |
|
|
|
|
|
|
|
mSys.cleanup_history(); |
|
|
|
#ifdef AHOY_SML_OBIS_SUPPORT |
|
|
|
if (mConfig->sml_obis.ir_connected) { |
|
|
|
sml_cleanup_history (); |
|
|
|
} |
|
|
|
#endif |
|
|
|
} |
|
|
|
|
|
|
@ -365,7 +369,9 @@ void app::tickMidnight(void) { |
|
|
|
} |
|
|
|
mSys.cleanup_history (); |
|
|
|
#ifdef AHOY_SML_OBIS_SUPPORT |
|
|
|
if (mConfig->sml_obis.ir_connected) { |
|
|
|
sml_cleanup_history(); |
|
|
|
} |
|
|
|
#endif |
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -9,8 +9,8 @@ |
|
|
|
; https://docs.platformio.org/page/projectconf.html |
|
|
|
|
|
|
|
[platformio] |
|
|
|
src_dir = c:\AhoiDTU\src |
|
|
|
include_dir = c:\AhoiDTU\src |
|
|
|
src_dir = . |
|
|
|
include_dir = . |
|
|
|
|
|
|
|
[env] |
|
|
|
board = d1_mini |
|
|
|