mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
Cosmetics
This commit is contained in:
parent
aea10a342e
commit
6cfd65a538
1 changed files with 1 additions and 5 deletions
|
@ -1220,13 +1220,12 @@ void menuModelSetup(event_t event)
|
||||||
if (g_model.moduleData[moduleIdx].pxx2.receivers[0].enabled) {
|
if (g_model.moduleData[moduleIdx].pxx2.receivers[0].enabled) {
|
||||||
g_model.moduleData[moduleIdx].pxx2.receivers[1].enabled = 0x01;
|
g_model.moduleData[moduleIdx].pxx2.receivers[1].enabled = 0x01;
|
||||||
memcpy(&g_model.moduleData[moduleIdx].pxx2.receivers[1].channelMapping, DEFAULT_CHANNEL_MAPPING, sizeof(uint64_t));
|
memcpy(&g_model.moduleData[moduleIdx].pxx2.receivers[1].channelMapping, DEFAULT_CHANNEL_MAPPING, sizeof(uint64_t));
|
||||||
menuVerticalPosition += 2;
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
g_model.moduleData[moduleIdx].pxx2.receivers[0].enabled = 0x01;
|
g_model.moduleData[moduleIdx].pxx2.receivers[0].enabled = 0x01;
|
||||||
memcpy(&g_model.moduleData[moduleIdx].pxx2.receivers[0].channelMapping, DEFAULT_CHANNEL_MAPPING, sizeof(uint64_t));
|
memcpy(&g_model.moduleData[moduleIdx].pxx2.receivers[0].channelMapping, DEFAULT_CHANNEL_MAPPING, sizeof(uint64_t));
|
||||||
menuVerticalPosition += 2;
|
|
||||||
}
|
}
|
||||||
|
menuVerticalPosition += 3;
|
||||||
s_editMode = 0;
|
s_editMode = 0;
|
||||||
killEvents(event);
|
killEvents(event);
|
||||||
storageDirty(EE_MODEL);
|
storageDirty(EE_MODEL);
|
||||||
|
@ -1297,9 +1296,6 @@ void menuModelSetup(event_t event)
|
||||||
else {
|
else {
|
||||||
s_editMode = 0;
|
s_editMode = 0;
|
||||||
}
|
}
|
||||||
if (reusableBuffer.moduleSetup.pxx2.bindStep == BIND_OK) {
|
|
||||||
// str2zchar(g_model.moduleData[moduleIdx].pxx2.receivers[receiverIdx].rxName, reusableBuffer.moduleSetup.pxx2.bindCandidateReceiversNames[reusableBuffer.moduleSetup.pxx2.bindSelectedReceiverIndex], PXX2_LEN_RX_NAME);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (event == EVT_KEY_BREAK(KEY_ENTER)) {
|
if (event == EVT_KEY_BREAK(KEY_ENTER)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue