From fa848e589ea2ddb811fb6bc8d58d7923e1868e69 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Sun, 10 May 2026 01:17:00 +0300 Subject: [PATCH] Use Serial1 for sbus on all platforms --- flix/rc.ino | 5 ----- gazebo/Arduino.h | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/flix/rc.ino b/flix/rc.ino index abf4e4f..689de45 100644 --- a/flix/rc.ino +++ b/flix/rc.ino @@ -6,12 +6,7 @@ #include #include "util.h" -#ifdef CONFIG_IDF_TARGET_ESP32C3 SBUS rc(Serial1); -#else -SBUS rc(Serial2); -#endif - int rcRxPin = -1; // -1 means disabled uint16_t channels[16]; // raw rc channels diff --git a/gazebo/Arduino.h b/gazebo/Arduino.h index d0512a1..52c849b 100644 --- a/gazebo/Arduino.h +++ b/gazebo/Arduino.h @@ -151,7 +151,7 @@ public: void setRxInvert(bool invert) {}; }; -HardwareSerial Serial, Serial2; +HardwareSerial Serial, Serial1, Serial2; class EspClass { public: