From 0afb74cfbcd0851c79ee38635109d47cdff1f4f2 Mon Sep 17 00:00:00 2001 From: Anthony Good Date: Tue, 26 May 2020 14:17:29 -0400 Subject: [PATCH] correction to last Github push --- k3ng_rotator_controller/k3ng_rotator_controller.ino | 4 ++-- k3ng_rotator_controller/rotator_hardware.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/k3ng_rotator_controller/k3ng_rotator_controller.ino b/k3ng_rotator_controller/k3ng_rotator_controller.ino index 72b5e8c..540fe89 100644 --- a/k3ng_rotator_controller/k3ng_rotator_controller.ino +++ b/k3ng_rotator_controller/k3ng_rotator_controller.ino @@ -944,7 +944,7 @@ byte current_az_speed_voltage = 0; SERIAL_PORT_CLASS * control_port; #endif -#if !defined(ARDUINO_AVR_MICRO) +#if !defined(ARDUINO_AVR_MICRO) && !defined(ARDUINO_AVR_LEONARDO) && !defined(ARDUINO_AVR_YUN) #if defined(FEATURE_MASTER_WITH_SERIAL_SLAVE) SERIAL_PORT_CLASS * remote_unit_port; #endif @@ -954,7 +954,7 @@ byte current_az_speed_voltage = 0; #endif #endif -#if !defined(ARDUINO_AVR_MICRO) +#if !defined(ARDUINO_AVR_MICRO) && !defined(ARDUINO_AVR_LEONARDO) && !defined(ARDUINO_AVR_YUN) #if defined(FEATURE_GPS) SERIAL_PORT_CLASS * gps_port; #ifdef GPS_MIRROR_PORT diff --git a/k3ng_rotator_controller/rotator_hardware.h b/k3ng_rotator_controller/rotator_hardware.h index 02e9b1e..84d8781 100755 --- a/k3ng_rotator_controller/rotator_hardware.h +++ b/k3ng_rotator_controller/rotator_hardware.h @@ -36,10 +36,10 @@ #if defined(ARDUINO_MAPLE_MINI) #define SERIAL_PORT_CLASS USBSerial -#elif defined(ARDUINO_AVR_MICRO) - #define SERIAL_PORT_CLASS Serial_ - #define SERIAL_PORT_CLASS_SECONDARY HardwareSerial -#elif defined(ARDUINO_AVR_PROMICRO) || defined(ARDUINO_AVR_LEONARDO) || defined(ARDUINO_AVR_YUN) || defined(ARDUINO_AVR_ESPLORA) || defined(ARDUINO_AVR_LILYPAD_USB) || defined(ARDUINO_AVR_ROBOT_CONTROL) || defined(ARDUINO_AVR_ROBOT_MOTOR) || defined(ARDUINO_AVR_LEONARDO_ETH) +#elif defined(ARDUINO_AVR_MICRO) || defined(ARDUINO_AVR_LEONARDO) || defined(ARDUINO_AVR_YUN) + #define SERIAL_PORT_CLASS Serial_ // <- Arduino Leonardo, Micro, and Yún - Configure this + #define SERIAL_PORT_CLASS_SECONDARY HardwareSerial // <- Arduino Leonardo, Micro, and Yún - Configure this +#elif defined(ARDUINO_AVR_PROMICRO) || defined(ARDUINO_AVR_ESPLORA) || defined(ARDUINO_AVR_LILYPAD_USB) || defined(ARDUINO_AVR_ROBOT_CONTROL) || defined(ARDUINO_AVR_ROBOT_MOTOR) || defined(ARDUINO_AVR_LEONARDO_ETH) #define SERIAL_PORT_CLASS Serial_ #elif defined(TEENSYDUINO) #define SERIAL_PORT_CLASS usb_serial_class