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