From ba873fb8bcf95b358357e6e413d500b7df07fb23 Mon Sep 17 00:00:00 2001 From: dexslab Date: Sun, 27 Dec 2020 18:44:25 -0500 Subject: [PATCH] Changed to EveryTimerB --- ArduinoTimers.h | 4 ++-- DCC.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ArduinoTimers.h b/ArduinoTimers.h index 84fb17b..c705e4d 100644 --- a/ArduinoTimers.h +++ b/ArduinoTimers.h @@ -11,8 +11,8 @@ #include "ATMEGA2560/Timer.h" #elif defined(ARDUINO_AVR_UNO) #include "ATMEGA328/Timer.h" -#elif defined(ARDUINO_AVR_UNO_WIFI_REV2) -#include "ATMEGA4809/Timer.h" +#elif defined(ARDUINO_ARCH_MEGAAVR) +#include "ATMEGA4809/EveryTimerB.h" #else #error "Cannot compile - ArduinoTimers library does not support your board, or you are missing compatible build flags." #endif diff --git a/DCC.h b/DCC.h index 9fbdaf7..db746cb 100644 --- a/DCC.h +++ b/DCC.h @@ -155,8 +155,8 @@ private: #define ARDUINO_TYPE "NANO" #elif defined(ARDUINO_AVR_MEGA2560) #define ARDUINO_TYPE "MEGA" -#elif defined(ARDUINO_AVR_UNO_WIFI_REV2) -#define ARDUINO_TYPE "UNOWIFIR2" +#elif defined(ARDUINO_ARCH_MEGAAVR) +#define ARDUINO_TYPE "MEGAAVR" #else #error CANNOT COMPILE - DCC++ EX ONLY WORKS WITH AN ARDUINO UNO, NANO 328, OR ARDUINO MEGA 1280/2560 #endif