From 784088b0df9363a7f0c9a956f8f19c0963d0030b Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Sun, 11 Feb 2024 23:19:51 +0100 Subject: [PATCH] get it into nano and uno again --- DCCEXParser.cpp | 2 ++ platformio.ini | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DCCEXParser.cpp b/DCCEXParser.cpp index 5b335d2..6deb34f 100644 --- a/DCCEXParser.cpp +++ b/DCCEXParser.cpp @@ -1035,6 +1035,7 @@ bool DCCEXParser::parseC(Print *stream, int16_t params, int16_t p[]) { DCC::setGlobalSpeedsteps(128); DIAG(F("128 Speedsteps")); return true; +#if defined(HAS_ENOUGH_MEMORY) && !defined(ARDUINO_ARCH_UNO) case "RAILCOM"_hk: { // if (params<2) return false; @@ -1059,6 +1060,7 @@ bool DCCEXParser::parseC(Print *stream, int16_t params, int16_t p[]) { ,DCCWaveform::setRailcom(on,debug)?F("ON"):F("OFF")); return true; } +#endif #ifndef DISABLE_PROG case "ACK"_hk: // if (params >= 3) { diff --git a/platformio.ini b/platformio.ini index 2630e6d..a03ff61 100644 --- a/platformio.ini +++ b/platformio.ini @@ -148,10 +148,7 @@ build_flags = platform = atmelavr board = uno framework = arduino -lib_deps = - ${env.lib_deps} - arduino-libraries/Ethernet - SPI +lib_deps = ${env.lib_deps} monitor_speed = 115200 monitor_echo = yes build_flags = -mcall-prologues @@ -164,6 +161,7 @@ framework = arduino lib_deps = ${env.lib_deps} monitor_speed = 115200 monitor_echo = yes +build_flags = -mcall-prologues [env:ESP32] platform = espressif32