Skip to content

Commit

Permalink
fix: MPM disable telemetry user choice ignored (#5286)
Browse files Browse the repository at this point in the history
Option is currently only shown on FrSky radios, hence they are susceptible to this bug
  • Loading branch information
3djc authored Jul 13, 2024
1 parent 0ecbfa2 commit 2407212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radio/src/pulses/multi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ static void setupPulsesMulti(uint8_t*& p_buf, uint8_t module)
}

// Invert telemetry if needed
uint8_t disableTelemetry = modulePortHasRx(module) ? 0 : 1;
uint8_t disableTelemetry = g_model.moduleData[module].multi.disableTelemetry || (modulePortHasRx(module) ? 0 : 1);
if (invert[module] & 0x80 && !disableTelemetry) {
if (getMultiModuleStatus(module).isValid()) {
invert[module] &= 0x08; // Telemetry received, stop searching
Expand Down

0 comments on commit 2407212

Please sign in to comment.