[Horus] Owner ID was missing
This commit is contained in:
@@ -159,13 +159,13 @@ void menuRadioSetup(event_t event)
|
|||||||
CASE_SPLASH_PARAM(0) // disable splash
|
CASE_SPLASH_PARAM(0) // disable splash
|
||||||
CASE_PWR_BUTTON_PRESS(0) // pwr on speed
|
CASE_PWR_BUTTON_PRESS(0) // pwr on speed
|
||||||
CASE_PWR_BUTTON_PRESS(0) // pwr off speed
|
CASE_PWR_BUTTON_PRESS(0) // pwr off speed
|
||||||
CASE_PXX2(0)
|
CASE_PXX2(0) // owner registration ID
|
||||||
CASE_GPS(LABEL(GPS))
|
CASE_GPS(LABEL(GPS))
|
||||||
CASE_GPS(0) // timezone
|
CASE_GPS(0) // timezone
|
||||||
CASE_GPS(0) // adjust RTC
|
CASE_GPS(0) // adjust RTC
|
||||||
CASE_GPS(0) // GPS format
|
CASE_GPS(0) // GPS format
|
||||||
CASE_PXX1(0) // country code
|
CASE_PXX1(0) // country code
|
||||||
0, // language
|
0, // voice language
|
||||||
0, // imperial
|
0, // imperial
|
||||||
IF_FAI_CHOICE(0)
|
IF_FAI_CHOICE(0)
|
||||||
0, // switches delay
|
0, // switches delay
|
||||||
|
|||||||
@@ -67,6 +67,9 @@ enum menuRadioSetupItems {
|
|||||||
ITEM_SETUP_DIM_LEVEL,
|
ITEM_SETUP_DIM_LEVEL,
|
||||||
ITEM_SETUP_FLASH_BEEP,
|
ITEM_SETUP_FLASH_BEEP,
|
||||||
CASE_PWR_BUTTON_PRESS(ITEM_SETUP_PWR_OFF_SPEED)
|
CASE_PWR_BUTTON_PRESS(ITEM_SETUP_PWR_OFF_SPEED)
|
||||||
|
#if defined(PXX2)
|
||||||
|
ITEM_RADIO_SETUP_OWNER_ID,
|
||||||
|
#endif
|
||||||
CASE_GPS(ITEM_SETUP_LABEL_GPS)
|
CASE_GPS(ITEM_SETUP_LABEL_GPS)
|
||||||
CASE_GPS(ITEM_SETUP_TIMEZONE)
|
CASE_GPS(ITEM_SETUP_TIMEZONE)
|
||||||
CASE_GPS(ITEM_SETUP_ADJUST_RTC)
|
CASE_GPS(ITEM_SETUP_ADJUST_RTC)
|
||||||
@@ -116,8 +119,21 @@ bool menuRadioSetup(event_t event)
|
|||||||
LABEL(ALARMS), 0, 0, 0, 0,
|
LABEL(ALARMS), 0, 0, 0, 0,
|
||||||
LABEL(BACKLIGHT), 0, 0, 0, 0, 0,
|
LABEL(BACKLIGHT), 0, 0, 0, 0, 0,
|
||||||
CASE_PWR_BUTTON_PRESS(0)
|
CASE_PWR_BUTTON_PRESS(0)
|
||||||
CASE_GPS(LABEL(GPS)) CASE_GPS(0) CASE_GPS(0) CASE_GPS(0)
|
CASE_PXX2(0) // owner registration ID
|
||||||
CASE_PXX1(0) 0, 0, FAI_CHOICE_ROW 0, 0, 0, 0, 1/*to force edit mode*/ }); // Country code - Voice Language - Units - Fai choice - Play delay - USB mode - Chan order - Mode (1 to 4)
|
CASE_GPS(LABEL(GPS))
|
||||||
|
CASE_GPS(0) // timezone
|
||||||
|
CASE_GPS(0) // adjust RTC
|
||||||
|
CASE_GPS(0) // GPS format
|
||||||
|
CASE_PXX1(0) // country code
|
||||||
|
0, // voice language
|
||||||
|
0, // imperial
|
||||||
|
FAI_CHOICE_ROW
|
||||||
|
0, // switches delay
|
||||||
|
0, // USB mode
|
||||||
|
0, // RX channels order
|
||||||
|
0, // sticks mode
|
||||||
|
1 /*to force edit mode*/
|
||||||
|
}); // Units - Fai choice - Play delay - USB mode - Chan order - Mode (1 to 4)
|
||||||
|
|
||||||
if (event == EVT_ENTRY) {
|
if (event == EVT_ENTRY) {
|
||||||
reusableBuffer.generalSettings.stickMode = g_eeGeneral.stickMode;
|
reusableBuffer.generalSettings.stickMode = g_eeGeneral.stickMode;
|
||||||
@@ -366,6 +382,13 @@ bool menuRadioSetup(event_t event)
|
|||||||
g_eeGeneral.alarmsFlash = editCheckBox(g_eeGeneral.alarmsFlash, RADIO_SETUP_2ND_COLUMN, y, attr, event ) ;
|
g_eeGeneral.alarmsFlash = editCheckBox(g_eeGeneral.alarmsFlash, RADIO_SETUP_2ND_COLUMN, y, attr, event ) ;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#if defined(PXX2)
|
||||||
|
case ITEM_RADIO_SETUP_OWNER_ID:
|
||||||
|
lcdDrawText(MENUS_MARGIN_LEFT, y, STR_OWNER_ID);
|
||||||
|
editName(RADIO_SETUP_2ND_COLUMN, y, g_eeGeneral.ownerRegistrationID, PXX2_LEN_REGISTRATION_ID, event, attr);
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
case ITEM_SETUP_BACKLIGHT_DELAY:
|
case ITEM_SETUP_BACKLIGHT_DELAY:
|
||||||
lcdDrawText(MENUS_MARGIN_LEFT, y, STR_BLDELAY);
|
lcdDrawText(MENUS_MARGIN_LEFT, y, STR_BLDELAY);
|
||||||
lcdDrawNumber(RADIO_SETUP_2ND_COLUMN, y, g_eeGeneral.lightAutoOff*5, attr|LEFT, 0, NULL, "s");
|
lcdDrawNumber(RADIO_SETUP_2ND_COLUMN, y, g_eeGeneral.lightAutoOff*5, attr|LEFT, 0, NULL, "s");
|
||||||
|
|||||||
Reference in New Issue
Block a user