Skip to content

Commit

Permalink
Remove unneeded INVERT_SERIAL define
Browse files Browse the repository at this point in the history
  • Loading branch information
okalachev committed Feb 4, 2024
1 parent 0f83e8e commit 0661aec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions flix/rc.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

#include <SBUS.h>

#define INVERT_SERIAL true // false if external SBUS invertor is used

// NOTE: use `cr` command and replace with the actual values
int channelNeutral[] = {995, 883, 200, 972, 512, 512};
int channelMax[] = {1651, 1540, 1713, 1630, 1472, 1472};
Expand All @@ -16,7 +14,7 @@ SBUS RC(Serial2);
void setupRC() {
Serial.println("Setup RC");
RC.begin();
Serial2.setRxInvert(INVERT_SERIAL);
Serial2.setRxInvert(true); // SBUS uses inverted signal
}

void readRC() {
Expand Down

0 comments on commit 0661aec

Please sign in to comment.