Skip to content

Commit a07dd30

Browse files
committed
guard Serial1 calls, as this is for v4
1 parent ea8c01c commit a07dd30

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

SmartEVSE-3/src/esp32.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,9 @@ void getButtonState() {
487487
void mqtt_receive_callback(const String topic, const String payload) {
488488
if (topic == MQTTprefix + "/Set/Mode") {
489489
if (payload == "Off") {
490+
#if SMARTEVSE_VERSION >=40 //v4
490491
Serial1.printf("@ResetModemTimers\n");
492+
#endif
491493
setAccess(OFF);
492494
} else if (payload == "Normal") {
493495
setMode(MODE_NORMAL);
@@ -1561,7 +1563,9 @@ bool handle_URI(struct mg_connection *c, struct mg_http_message *hm, webServerR
15611563

15621564
switch(mode.toInt()) {
15631565
case 0: // OFF
1566+
#if SMARTEVSE_VERSION >=40 //v4
15641567
Serial1.printf("@ResetModemTimers\n");
1568+
#endif
15651569
setAccess(OFF);
15661570
break;
15671571
case 1:

SmartEVSE-3/src/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3385,7 +3385,9 @@ uint8_t setItemValue(uint8_t nav, uint16_t val) {
33853385
#ifdef SMARTEVSE_VERSION
33863386
case MENU_RCMON:
33873387
RCmon = val;
3388+
#if SMARTEVSE_VERSION >= 40 //v4
33883389
Serial1.printf("@RCmon:%u\n", RCmon);
3390+
#endif
33893391
break;
33903392
case MENU_WIFI:
33913393
WIFImode = val;

0 commit comments

Comments
 (0)