mirror of
https://github.com/okalachev/flix.git
synced 2025-07-27 09:39:33 +00:00
Fix SBUS simulation logic
Don't consider zero values from not connected joystick
This commit is contained in:
parent
7533a9cbfa
commit
28f6cfff60
@ -14,7 +14,7 @@ public:
|
||||
SBUS(HardwareSerial& bus, const bool inv = true) {};
|
||||
SBUS(HardwareSerial& bus, const int8_t rxpin, const int8_t txpin, const bool inv = true) {};
|
||||
void begin() {};
|
||||
bool read() { return true; };
|
||||
bool read() { return joystickInitialized; };
|
||||
SBUSData data() {
|
||||
SBUSData data;
|
||||
joystickGet(data.ch);
|
||||
|
Loading…
x
Reference in New Issue
Block a user