Fix joystick work in simulation

Logic was broken as joystickGet never got called
This commit is contained in:
Oleg Kalachev
2024-12-27 15:34:33 +03:00
parent 2440c65c46
commit 43be27c43d
2 changed files with 7 additions and 8 deletions

View File

@@ -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 joystickInitialized; };
bool read() { return joystickInit(); };
SBUSData data() {
SBUSData data;
joystickGet(data.ch);