feat: ELRS bind command support (#4907)
This commit is contained in:
@@ -1562,7 +1562,10 @@ void menuModelSetup(event_t event)
|
||||
l_posHorz += 1;
|
||||
}
|
||||
if (isModuleBindRangeAvailable(moduleIdx)) {
|
||||
lcdDrawText(bindButtonPos, y, STR_MODULE_BIND, l_posHorz == 1 ? attr : 0);
|
||||
if (TELEMETRY_STREAMING() && isModuleCrossfire(moduleIdx))
|
||||
lcdDrawText(bindButtonPos, y, STR_MODULE_UNBIND, l_posHorz == 1 ? attr : 0);
|
||||
else
|
||||
lcdDrawText(bindButtonPos, y, STR_MODULE_BIND, l_posHorz == 1 ? attr : 0);
|
||||
if (isModuleRangeAvailable(moduleIdx)) {
|
||||
lcdDrawText(lcdNextPos + FW, y, STR_MODULE_RANGE, l_posHorz == 2 ? attr : 0);
|
||||
}
|
||||
@@ -1600,6 +1603,8 @@ void menuModelSetup(event_t event)
|
||||
}
|
||||
else {
|
||||
newFlag = MODULE_MODE_BIND;
|
||||
if (isModuleCrossfire(moduleIdx))
|
||||
AUDIO_PLAY(AU_SPECIAL_SOUND_CHEEP); // Since ELRS bind is just one frame, we need to play the sound manually
|
||||
}
|
||||
|
||||
if (!event && (oldFlag != newFlag) &&
|
||||
|
||||
Reference in New Issue
Block a user