From cec6d6dbe769b3b0491d9435764d0b3bee958540 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Tue, 30 Aug 2022 09:44:59 +0200 Subject: [PATCH] need to ifdef that --- ESP32-fixes.cpp | 2 ++ ESP32-fixes.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ESP32-fixes.cpp b/ESP32-fixes.cpp index a21a1df..e3c350c 100644 --- a/ESP32-fixes.cpp +++ b/ESP32-fixes.cpp @@ -17,6 +17,7 @@ * You should have received a copy of the GNU General Public License * along with CommandStation. If not, see . */ +#ifdef ARDUINO_ARCH_ESP32 #include #include "ESP32-fixes.h" @@ -57,3 +58,4 @@ void DCCEXanalogWrite(uint8_t pin, int value) { ledcWrite(pin_to_channel[pin], value); } } +#endif diff --git a/ESP32-fixes.h b/ESP32-fixes.h index 64edaa3..0fd4a7f 100644 --- a/ESP32-fixes.h +++ b/ESP32-fixes.h @@ -17,8 +17,10 @@ * You should have received a copy of the GNU General Public License * along with CommandStation. If not, see . */ +#ifdef ARDUINO_ARCH_ESP32 #pragma once #include void DCCEXanalogWriteFrequency(uint8_t pin, uint32_t frequency); void DCCEXanalogWrite(uint8_t pin, int value); +#endif