Skip to content

Commit 20de294

Browse files
committed
Updated build
1 parent e31faaa commit 20de294

2 files changed

Lines changed: 21 additions & 3 deletions

File tree

lib/MeterCommunicators/src/PassiveMeterCommunicator.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,11 @@ int16_t PassiveMeterCommunicator::unwrapData(uint8_t *buf, DataParserContext &co
366366
break;
367367
case DATA_TAG_DSMR:
368368
if(dsmrParser == NULL) dsmrParser = new DSMRParser(gcmParser);
369+
#if defined(AMS_REMOTE_DEBUG)
369370
res = dsmrParser->parse(buf, context, lastTag != DATA_TAG_NONE, debugger->isActive(RemoteDebug::VERBOSE) ? debugger : NULL);
371+
#else
372+
res = dsmrParser->parse(buf, context, lastTag != DATA_TAG_NONE, debugger);
373+
#endif
370374
if(res >= 0) doRet = true;
371375
break;
372376
case DATA_TAG_SNRM:

platformio.ini

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ board_build.ldscript = eagle.flash.4m2m.ld
2929
build_flags = ${common.build_flags} -D AMS_REMOTE_DEBUG=1
3030
lib_ldf_mode = off
3131
lib_compat_mode = off
32-
lib_deps = ESP8266WiFi, ESP8266mDNS, ESP8266WebServer, ESP8266HTTPClient, ESP8266SSDP, EspSoftwareSerial@6.14.1, ${common.lib_deps}, SvelteUi
32+
lib_deps = ESP8266WiFi, ESP8266mDNS, ESP8266WebServer, ESP8266HTTPClient, ESP8266httpUpdate, ESP8266SSDP, EspSoftwareSerial@6.14.1, ${common.lib_deps}, SvelteUi
3333
lib_ignore = ${common.lib_ignore}
3434
extra_scripts = ${common.extra_scripts}
3535

@@ -39,7 +39,12 @@ framework = arduino
3939
board = esp32dev
4040
board_build.f_cpu = 160000000L
4141
board_build.partitions = custom_partition.csv
42-
build_flags = ${common.build_flags}
42+
build_flags =
43+
${common.build_flags}
44+
-D AMS_REMOTE_DEBUG=1
45+
-D AMS_KMP=1
46+
-L precompiled/esp32
47+
-lKmpTalker
4348
lib_ldf_mode = off
4449
lib_compat_mode = off
4550
lib_deps = ${esp32.lib_deps}
@@ -80,6 +85,10 @@ board_build.partitions = custom_partition.csv
8085
build_flags =
8186
${common.build_flags}
8287
-DFRAMEWORK_ARDUINO_SOLO1
88+
-D AMS_REMOTE_DEBUG=1
89+
-D AMS_KMP=1
90+
-L precompiled/esp32
91+
-lKmpTalker
8392
lib_ldf_mode = off
8493
lib_compat_mode = off
8594
lib_deps = ${esp32.lib_deps}
@@ -92,7 +101,12 @@ framework = arduino
92101
board = esp32-c3-devkitm-1
93102
board_build.mcu = esp32c3
94103
board_build.partitions = custom_partition.csv
95-
build_flags = ${common.build_flags}
104+
build_flags =
105+
${common.build_flags}
106+
-D AMS_REMOTE_DEBUG=1
107+
-D AMS_KMP=1
108+
-L precompiled/esp32c3
109+
-lKmpTalker
96110
lib_ldf_mode = off
97111
lib_compat_mode = off
98112
lib_deps = ${esp32.lib_deps}

0 commit comments

Comments
 (0)