Correctly set output parameters of simulated SBUS::read, minor name fix

This commit is contained in:
Oleg Kalachev
2024-02-06 21:02:20 +03:00
parent 410fccf015
commit ba6e63b50b
2 changed files with 6 additions and 4 deletions

View File

@@ -18,9 +18,9 @@ void setupRC() {
}
void readRC() {
bool failSafe, lostFrame;
if (RC.read(channels, &failSafe, &lostFrame)) {
if (failSafe) { return; } // TODO:
bool failsafe, lostFrame;
if (RC.read(channels, &failsafe, &lostFrame)) {
if (failsafe) { return; } // TODO:
if (lostFrame) { return; }
normalizeRC();
}