mirror of
https://github.com/okalachev/flix.git
synced 2026-02-17 07:31:56 +00:00
Use Serial1 for for rc on esp32-c3
This commit is contained in:
@@ -6,7 +6,11 @@
|
|||||||
#include <SBUS.h>
|
#include <SBUS.h>
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
#ifdef ESP32C3
|
||||||
|
SBUS rc(Serial1);
|
||||||
|
#else
|
||||||
SBUS rc(Serial2);
|
SBUS rc(Serial2);
|
||||||
|
#endif
|
||||||
|
|
||||||
uint16_t channels[16]; // raw rc channels
|
uint16_t channels[16]; // raw rc channels
|
||||||
float channelZero[16]; // calibration zero values
|
float channelZero[16]; // calibration zero values
|
||||||
|
|||||||
Reference in New Issue
Block a user