From b53384ab51094b1184bc33f8a63e38273d3a3088 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Sat, 7 Sep 2024 23:31:02 +0200 Subject: [PATCH] If anyone ever wants to run a SABERTOOTH motor controller from a Mega2560 --- SerialManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SerialManager.cpp b/SerialManager.cpp index 8430089..fa7ad38 100644 --- a/SerialManager.cpp +++ b/SerialManager.cpp @@ -94,6 +94,8 @@ void SerialManager::init() { #ifdef SABERTOOTH #ifdef ARDUINO_ARCH_ESP32 Serial2.begin(9600, SERIAL_8N1, 16, 17); // GPIO 16 RXD2; GPIO 17 TXD2 on ESP32 +#else + Serial2.begin(9600); #endif #endif }