mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 01:35:21 +03:00
Fixed the issue that the power option changes when R9M (without access) bind with 'ch1-8 tele ON' option. (#6964)
This commit is contained in:
parent
8b49daa455
commit
fea0ec73e8
1 changed files with 0 additions and 6 deletions
|
@ -26,16 +26,10 @@ void onBindMenu(const char * result)
|
||||||
if (result == STR_BINDING_1_8_TELEM_ON) {
|
if (result == STR_BINDING_1_8_TELEM_ON) {
|
||||||
g_model.moduleData[moduleIdx].pxx.receiverTelemetryOff = false;
|
g_model.moduleData[moduleIdx].pxx.receiverTelemetryOff = false;
|
||||||
g_model.moduleData[moduleIdx].pxx.receiverHigherChannels = false;
|
g_model.moduleData[moduleIdx].pxx.receiverHigherChannels = false;
|
||||||
if (isModuleR9MLiteNonPro(moduleIdx) && isModuleR9M_LBT(moduleIdx)) {
|
|
||||||
g_model.moduleData[moduleIdx].pxx.power = R9M_LITE_LBT_POWER_25_8CH;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (result == STR_BINDING_1_8_TELEM_OFF) {
|
else if (result == STR_BINDING_1_8_TELEM_OFF) {
|
||||||
g_model.moduleData[moduleIdx].pxx.receiverTelemetryOff = true;
|
g_model.moduleData[moduleIdx].pxx.receiverTelemetryOff = true;
|
||||||
g_model.moduleData[moduleIdx].pxx.receiverHigherChannels = false;
|
g_model.moduleData[moduleIdx].pxx.receiverHigherChannels = false;
|
||||||
if (isModuleR9MLiteNonPro(moduleIdx) && isModuleR9M_LBT(moduleIdx)) {
|
|
||||||
g_model.moduleData[moduleIdx].pxx.power = R9M_LITE_LBT_POWER_100_16CH_NOTELEM;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (result == STR_BINDING_9_16_TELEM_ON) {
|
else if (result == STR_BINDING_9_16_TELEM_ON) {
|
||||||
g_model.moduleData[moduleIdx].pxx.receiverTelemetryOff = false;
|
g_model.moduleData[moduleIdx].pxx.receiverTelemetryOff = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue