2 Commits

Author SHA1 Message Date
Oleg Kalachev
2308bd4d8f Use Serial1 for for rc on esp32-c3 2026-01-23 03:18:41 +03:00
Oleg Kalachev
8153644578 Add esp32-c3 build to ci 2026-01-23 03:04:57 +03:00
2 changed files with 6 additions and 0 deletions

View File

@@ -25,6 +25,8 @@ jobs:
path: flix/build
- name: Build firmware for ESP32-S3
run: make BOARD=esp32:esp32:esp32s3
- name: Build firmware for ESP32-C3
run: make BOARD=esp32:esp32:esp32c3
- name: Check c_cpp_properties.json
run: tools/check_c_cpp_properties.py

View File

@@ -6,7 +6,11 @@
#include <SBUS.h>
#include "util.h"
#ifdef ESP32C3
SBUS rc(Serial1);
#else
SBUS rc(Serial2);
#endif
uint16_t channels[16]; // raw rc channels
float channelZero[16]; // calibration zero values