Power issue with R9M (always max power) (#5513)
This commit is contained in:
committed by
Andre Bernet
parent
dc89bb1dfc
commit
d7645252bb
@@ -384,7 +384,7 @@ void setupPulsesPXX(uint8_t port)
|
||||
extra_flags |= (g_model.moduleData[port].pxx.receiver_telem_off << 1);
|
||||
extra_flags |= (g_model.moduleData[port].pxx.receiver_channel_9_16 << 2);
|
||||
if (IS_MODULE_R9M(port)) {
|
||||
extra_flags |= (max(g_model.moduleData[port].pxx.power, IS_MODULE_R9M_FCC(port) ? (uint8_t)R9M_FCC_POWER_MAX : (uint8_t)R9M_LBT_POWER_MAX) << 3);
|
||||
extra_flags |= (min(g_model.moduleData[port].pxx.power, IS_MODULE_R9M_FCC(port) ? (uint8_t)R9M_FCC_POWER_MAX : (uint8_t)R9M_LBT_POWER_MAX) << 3);
|
||||
// Disable S.PORT if internal module is active
|
||||
if (IS_TELEMETRY_INTERNAL_MODULE() || !g_model.moduleData[port].pxx.sport_out) {
|
||||
extra_flags |= (1 << 5);
|
||||
|
||||
Reference in New Issue
Block a user