mirror of
https://github.com/okalachev/flix.git
synced 2026-06-28 05:56:44 +00:00
Use Serial1 for sbus on all platforms
This commit is contained in:
@@ -6,12 +6,7 @@
|
|||||||
#include <SBUS.h>
|
#include <SBUS.h>
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
#ifdef CONFIG_IDF_TARGET_ESP32C3
|
|
||||||
SBUS rc(Serial1);
|
SBUS rc(Serial1);
|
||||||
#else
|
|
||||||
SBUS rc(Serial2);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int rcRxPin = -1; // -1 means disabled
|
int rcRxPin = -1; // -1 means disabled
|
||||||
|
|
||||||
uint16_t channels[16]; // raw rc channels
|
uint16_t channels[16]; // raw rc channels
|
||||||
|
|||||||
+1
-1
@@ -151,7 +151,7 @@ public:
|
|||||||
void setRxInvert(bool invert) {};
|
void setRxInvert(bool invert) {};
|
||||||
};
|
};
|
||||||
|
|
||||||
HardwareSerial Serial, Serial2;
|
HardwareSerial Serial, Serial1, Serial2;
|
||||||
|
|
||||||
class EspClass {
|
class EspClass {
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user