Skip to content

Commit

Permalink
elrsman/tx: Always send RC channels frame to TX module
Browse files Browse the repository at this point in the history
When the TX module is in BLE joystick mode, it expects to receive the RC frames regardless of not being connected to a FC. This corrects the prior change which only sent the RC frame when the TX module was connected to a FC.
  • Loading branch information
PixelyIon committed Aug 9, 2024
1 parent f28c7f2 commit 4e47d87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class ElrsManager {

if (frame) {
crsfInterface.SendFrame(*frame);
} else if (device.address == crsf::Address::FlightController && channelFrame) {
} else if (device.address == crsf::Address::CrsfTransmitter && channelFrame) {
crsfInterface.SendFrame(*channelFrame);
channelFrame.reset();
}
Expand Down

0 comments on commit 4e47d87

Please sign in to comment.