mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
Fixes
This commit is contained in:
parent
4a6fc430ec
commit
7ccdb0cca1
2 changed files with 3 additions and 3 deletions
|
@ -788,7 +788,7 @@ enum BluetoothModes {
|
||||||
|
|
||||||
// PXX2 constants
|
// PXX2 constants
|
||||||
#define PXX2_LEN_REGISTRATION_ID 4
|
#define PXX2_LEN_REGISTRATION_ID 4
|
||||||
#define PXX2_LEN_RX_ID 4
|
#define PXX2_LEN_RX_ID 8
|
||||||
#define PXX2_MAX_RECEIVERS_PER_MODULE 5
|
#define PXX2_MAX_RECEIVERS_PER_MODULE 5
|
||||||
|
|
||||||
#endif // _DATACONSTANTS_H_
|
#endif // _DATACONSTANTS_H_
|
||||||
|
|
|
@ -1146,7 +1146,7 @@ void menuModelSetup(event_t event)
|
||||||
case ITEM_MODEL_INTERNAL_MODULE_PXX2_RECEIVER_2_BIND_DEL:
|
case ITEM_MODEL_INTERNAL_MODULE_PXX2_RECEIVER_2_BIND_DEL:
|
||||||
{
|
{
|
||||||
uint8_t receiverIdx = CURRENT_RECEIVER_EDITED(k);
|
uint8_t receiverIdx = CURRENT_RECEIVER_EDITED(k);
|
||||||
for (uint8_t pos=0; pos<PXX2_LEN_REGISTRATION_ID; pos++) {
|
for (uint8_t pos=0; pos<PXX2_LEN_RX_ID; pos++) {
|
||||||
lcdDrawHexChar(6 + pos*FW*2, y, g_model.moduleData[INTERNAL_MODULE].pxx2.receivers[receiverIdx].rxID[pos], 0);
|
lcdDrawHexChar(6 + pos*FW*2, y, g_model.moduleData[INTERNAL_MODULE].pxx2.receivers[receiverIdx].rxID[pos], 0);
|
||||||
}
|
}
|
||||||
lcdDrawText(MODEL_SETUP_2ND_COLUMN, y, STR_MODULE_BIND, menuHorizontalPosition==0 ? attr : 0);
|
lcdDrawText(MODEL_SETUP_2ND_COLUMN, y, STR_MODULE_BIND, menuHorizontalPosition==0 ? attr : 0);
|
||||||
|
@ -1748,7 +1748,7 @@ void menuModelPinmap(event_t event)
|
||||||
SIMPLE_SUBMENU_NOTITLE(sentModuleChannels(g_moduleIdx));
|
SIMPLE_SUBMENU_NOTITLE(sentModuleChannels(g_moduleIdx));
|
||||||
|
|
||||||
lcdDrawTextAlignedLeft(0, STR_PINMAPSET);
|
lcdDrawTextAlignedLeft(0, STR_PINMAPSET);
|
||||||
for (uint8_t pos=0; pos<PXX2_LEN_REGISTRATION_ID; pos++) {
|
for (uint8_t pos=0; pos<PXX2_LEN_RX_ID; pos++) {
|
||||||
lcdDrawHexChar(50 + pos*FW*2, 0, g_model.moduleData[INTERNAL_MODULE].pxx2.receivers[g_receiverIdx].rxID[pos], 0);
|
lcdDrawHexChar(50 + pos*FW*2, 0, g_model.moduleData[INTERNAL_MODULE].pxx2.receivers[g_receiverIdx].rxID[pos], 0);
|
||||||
}
|
}
|
||||||
lcdInvertLine(0);
|
lcdInvertLine(0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue