Cosmetics
This commit is contained in:
@@ -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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user