Skip to content

Commit

Permalink
Updated build
Browse files Browse the repository at this point in the history
  • Loading branch information
gskjold committed Jan 12, 2025
1 parent e31faaa commit 20de294
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
4 changes: 4 additions & 0 deletions lib/MeterCommunicators/src/PassiveMeterCommunicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,11 @@ int16_t PassiveMeterCommunicator::unwrapData(uint8_t *buf, DataParserContext &co
break;
case DATA_TAG_DSMR:
if(dsmrParser == NULL) dsmrParser = new DSMRParser(gcmParser);
#if defined(AMS_REMOTE_DEBUG)
res = dsmrParser->parse(buf, context, lastTag != DATA_TAG_NONE, debugger->isActive(RemoteDebug::VERBOSE) ? debugger : NULL);
#else
res = dsmrParser->parse(buf, context, lastTag != DATA_TAG_NONE, debugger);
#endif
if(res >= 0) doRet = true;
break;
case DATA_TAG_SNRM:
Expand Down
20 changes: 17 additions & 3 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ board_build.ldscript = eagle.flash.4m2m.ld
build_flags = ${common.build_flags} -D AMS_REMOTE_DEBUG=1
lib_ldf_mode = off
lib_compat_mode = off
lib_deps = ESP8266WiFi, ESP8266mDNS, ESP8266WebServer, ESP8266HTTPClient, ESP8266SSDP, [email protected], ${common.lib_deps}, SvelteUi
lib_deps = ESP8266WiFi, ESP8266mDNS, ESP8266WebServer, ESP8266HTTPClient, ESP8266httpUpdate, ESP8266SSDP, [email protected], ${common.lib_deps}, SvelteUi
lib_ignore = ${common.lib_ignore}
extra_scripts = ${common.extra_scripts}

Expand All @@ -39,7 +39,12 @@ framework = arduino
board = esp32dev
board_build.f_cpu = 160000000L
board_build.partitions = custom_partition.csv
build_flags = ${common.build_flags}
build_flags =
${common.build_flags}
-D AMS_REMOTE_DEBUG=1
-D AMS_KMP=1
-L precompiled/esp32
-lKmpTalker
lib_ldf_mode = off
lib_compat_mode = off
lib_deps = ${esp32.lib_deps}
Expand Down Expand Up @@ -80,6 +85,10 @@ board_build.partitions = custom_partition.csv
build_flags =
${common.build_flags}
-DFRAMEWORK_ARDUINO_SOLO1
-D AMS_REMOTE_DEBUG=1
-D AMS_KMP=1
-L precompiled/esp32
-lKmpTalker
lib_ldf_mode = off
lib_compat_mode = off
lib_deps = ${esp32.lib_deps}
Expand All @@ -92,7 +101,12 @@ framework = arduino
board = esp32-c3-devkitm-1
board_build.mcu = esp32c3
board_build.partitions = custom_partition.csv
build_flags = ${common.build_flags}
build_flags =
${common.build_flags}
-D AMS_REMOTE_DEBUG=1
-D AMS_KMP=1
-L precompiled/esp32c3
-lKmpTalker
lib_ldf_mode = off
lib_compat_mode = off
lib_deps = ${esp32.lib_deps}
Expand Down

0 comments on commit 20de294

Please sign in to comment.