Register fix
This commit is contained in:
@@ -501,6 +501,7 @@ void startRegisterDialog(uint8_t module)
|
|||||||
reusableBuffer.moduleSetup.pxx2.registerPopupVerticalPosition = ITEM_REGISTER_BUTTONS;
|
reusableBuffer.moduleSetup.pxx2.registerPopupVerticalPosition = ITEM_REGISTER_BUTTONS;
|
||||||
moduleState[module].mode = MODULE_MODE_REGISTER;
|
moduleState[module].mode = MODULE_MODE_REGISTER;
|
||||||
s_editMode = 0;
|
s_editMode = 0;
|
||||||
|
killAllEvents();
|
||||||
POPUP_INPUT("", runPopupRegister);
|
POPUP_INPUT("", runPopupRegister);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -96,11 +96,11 @@ bool menuModelFailsafe(event_t event)
|
|||||||
x += (LCD_W/2)-4-MENUS_MARGIN_LEFT-SLIDER_W;
|
x += (LCD_W/2)-4-MENUS_MARGIN_LEFT-SLIDER_W;
|
||||||
|
|
||||||
if (failsafeValue == FAILSAFE_CHANNEL_HOLD) {
|
if (failsafeValue == FAILSAFE_CHANNEL_HOLD) {
|
||||||
lcdDrawText(x, y+2, "HOLD", flags|SMLSIZE);
|
lcdDrawText(x, y+2, STR_HOLD, flags|SMLSIZE);
|
||||||
failsafeValue = 0;
|
failsafeValue = 0;
|
||||||
}
|
}
|
||||||
else if (failsafeValue == FAILSAFE_CHANNEL_NOPULSE) {
|
else if (failsafeValue == FAILSAFE_CHANNEL_NOPULSE) {
|
||||||
lcdDrawText(x, y+2, "NONE", flags|SMLSIZE);
|
lcdDrawText(x, y+2, STR_NONE, flags|SMLSIZE);
|
||||||
failsafeValue = 0;
|
failsafeValue = 0;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@@ -91,7 +91,6 @@ enum
|
|||||||
|
|
||||||
inline void POPUP_INFORMATION(const char * s)
|
inline void POPUP_INFORMATION(const char * s)
|
||||||
{
|
{
|
||||||
killAllEvents();
|
|
||||||
warningText = s;
|
warningText = s;
|
||||||
warningInfoText = nullptr;
|
warningInfoText = nullptr;
|
||||||
warningType = WARNING_TYPE_INFO;
|
warningType = WARNING_TYPE_INFO;
|
||||||
@@ -100,7 +99,6 @@ enum
|
|||||||
|
|
||||||
inline void POPUP_WARNING(const char * s)
|
inline void POPUP_WARNING(const char * s)
|
||||||
{
|
{
|
||||||
killAllEvents();
|
|
||||||
warningText = s;
|
warningText = s;
|
||||||
warningInfoText = nullptr;
|
warningInfoText = nullptr;
|
||||||
warningType = WARNING_TYPE_ASTERISK;
|
warningType = WARNING_TYPE_ASTERISK;
|
||||||
@@ -109,7 +107,6 @@ enum
|
|||||||
|
|
||||||
inline void POPUP_CONFIRMATION(const char * s, PopupMenuHandler handler)
|
inline void POPUP_CONFIRMATION(const char * s, PopupMenuHandler handler)
|
||||||
{
|
{
|
||||||
killAllEvents();
|
|
||||||
warningText = s;
|
warningText = s;
|
||||||
warningInfoText = nullptr;
|
warningInfoText = nullptr;
|
||||||
warningType = WARNING_TYPE_CONFIRM;
|
warningType = WARNING_TYPE_CONFIRM;
|
||||||
@@ -119,7 +116,6 @@ enum
|
|||||||
|
|
||||||
inline void POPUP_INPUT(const char * s, PopupFunc func)
|
inline void POPUP_INPUT(const char * s, PopupFunc func)
|
||||||
{
|
{
|
||||||
killAllEvents();
|
|
||||||
warningText = s;
|
warningText = s;
|
||||||
warningInfoText = nullptr;
|
warningInfoText = nullptr;
|
||||||
warningType = WARNING_TYPE_INPUT;
|
warningType = WARNING_TYPE_INPUT;
|
||||||
|
|||||||
@@ -954,8 +954,8 @@
|
|||||||
#define TR_REG_ID TR("Reg. ID", "Registration ID")
|
#define TR_REG_ID TR("Reg. ID", "Registration ID")
|
||||||
#define TR_OWNER_ID "Owner ID"
|
#define TR_OWNER_ID "Owner ID"
|
||||||
#define TR_PINMAPSET "PINMAP"
|
#define TR_PINMAPSET "PINMAP"
|
||||||
#define TR_HOLD "HOLD"
|
#define TR_HOLD "Hold"
|
||||||
#define TR_NONE "NONE"
|
#define TR_NONE "None"
|
||||||
#define TR_MENUSENSOR "SENSOR"
|
#define TR_MENUSENSOR "SENSOR"
|
||||||
#define TR_POWERMETER_PEAK "Peak"
|
#define TR_POWERMETER_PEAK "Peak"
|
||||||
#define TR_POWERMETER_POWER "Power"
|
#define TR_POWERMETER_POWER "Power"
|
||||||
|
|||||||
@@ -944,8 +944,8 @@
|
|||||||
#define TR_REG_ID TR("Reg. ID", "Registration ID")
|
#define TR_REG_ID TR("Reg. ID", "Registration ID")
|
||||||
#define TR_OWNER_ID "Owner ID"
|
#define TR_OWNER_ID "Owner ID"
|
||||||
#define TR_PINMAPSET "PINMAP"
|
#define TR_PINMAPSET "PINMAP"
|
||||||
#define TR_HOLD "HOLD"
|
#define TR_HOLD "Hold"
|
||||||
#define TR_NONE "NONE"
|
#define TR_NONE "None"
|
||||||
#define TR_MENUSENSOR "SENSOR"
|
#define TR_MENUSENSOR "SENSOR"
|
||||||
#define TR_POWERMETER_PEAK "Peak"
|
#define TR_POWERMETER_PEAK "Peak"
|
||||||
#define TR_POWERMETER_POWER "Power"
|
#define TR_POWERMETER_POWER "Power"
|
||||||
|
|||||||
@@ -956,8 +956,8 @@
|
|||||||
#define TR_REG_ID TR("Reg. ID", "Registration ID")
|
#define TR_REG_ID TR("Reg. ID", "Registration ID")
|
||||||
#define TR_OWNER_ID "Owner ID"
|
#define TR_OWNER_ID "Owner ID"
|
||||||
#define TR_PINMAPSET "PINMAP"
|
#define TR_PINMAPSET "PINMAP"
|
||||||
#define TR_HOLD "HOLD"
|
#define TR_HOLD "Hold"
|
||||||
#define TR_NONE "NONE"
|
#define TR_NONE "None"
|
||||||
#define TR_MENUSENSOR "SENSOR"
|
#define TR_MENUSENSOR "SENSOR"
|
||||||
#define TR_POWERMETER_PEAK "Peak"
|
#define TR_POWERMETER_PEAK "Peak"
|
||||||
#define TR_POWERMETER_POWER "Power"
|
#define TR_POWERMETER_POWER "Power"
|
||||||
|
|||||||
@@ -944,8 +944,8 @@
|
|||||||
#define TR_REG_ID TR("Reg. ID", "Registration ID")
|
#define TR_REG_ID TR("Reg. ID", "Registration ID")
|
||||||
#define TR_OWNER_ID "Owner ID"
|
#define TR_OWNER_ID "Owner ID"
|
||||||
#define TR_PINMAPSET "PINMAP"
|
#define TR_PINMAPSET "PINMAP"
|
||||||
#define TR_HOLD "HOLD"
|
#define TR_HOLD "Hold"
|
||||||
#define TR_NONE "NONE"
|
#define TR_NONE "None"
|
||||||
#define TR_MENUSENSOR "SENSOR"
|
#define TR_MENUSENSOR "SENSOR"
|
||||||
#define TR_POWERMETER_PEAK "Peak"
|
#define TR_POWERMETER_PEAK "Peak"
|
||||||
#define TR_POWERMETER_POWER "Power"
|
#define TR_POWERMETER_POWER "Power"
|
||||||
|
|||||||
@@ -956,8 +956,8 @@
|
|||||||
#define TR_REG_ID TR("ID Enr.", "ID Enregisrement")
|
#define TR_REG_ID TR("ID Enr.", "ID Enregisrement")
|
||||||
#define TR_OWNER_ID "ID Radio"
|
#define TR_OWNER_ID "ID Radio"
|
||||||
#define TR_PINMAPSET "PINMAP"
|
#define TR_PINMAPSET "PINMAP"
|
||||||
#define TR_HOLD "HOLD"
|
#define TR_HOLD "Hold"
|
||||||
#define TR_NONE "NONE"
|
#define TR_NONE "None"
|
||||||
#define TR_MENUSENSOR "CAPTEUR"
|
#define TR_MENUSENSOR "CAPTEUR"
|
||||||
#define TR_POWERMETER_PEAK "Pic"
|
#define TR_POWERMETER_PEAK "Pic"
|
||||||
#define TR_POWERMETER_POWER "Puiss"
|
#define TR_POWERMETER_POWER "Puiss"
|
||||||
|
|||||||
@@ -950,8 +950,8 @@
|
|||||||
#define TR_REG_ID TR("Reg. ID", "Registration ID")
|
#define TR_REG_ID TR("Reg. ID", "Registration ID")
|
||||||
#define TR_OWNER_ID "Owner ID"
|
#define TR_OWNER_ID "Owner ID"
|
||||||
#define TR_PINMAPSET "PINMAP"
|
#define TR_PINMAPSET "PINMAP"
|
||||||
#define TR_HOLD "HOLD"
|
#define TR_HOLD "Hold"
|
||||||
#define TR_NONE "NONE"
|
#define TR_NONE "None"
|
||||||
#define TR_MENUSENSOR "SENSOR"
|
#define TR_MENUSENSOR "SENSOR"
|
||||||
#define TR_POWERMETER_PEAK "Peak"
|
#define TR_POWERMETER_PEAK "Peak"
|
||||||
#define TR_POWERMETER_POWER "Power"
|
#define TR_POWERMETER_POWER "Power"
|
||||||
|
|||||||
@@ -951,8 +951,8 @@ TR_GYR_VSRCRAW
|
|||||||
#define TR_REG_ID TR("Reg. ID", "Registration ID")
|
#define TR_REG_ID TR("Reg. ID", "Registration ID")
|
||||||
#define TR_OWNER_ID "Owner ID"
|
#define TR_OWNER_ID "Owner ID"
|
||||||
#define TR_PINMAPSET "PINMAP"
|
#define TR_PINMAPSET "PINMAP"
|
||||||
#define TR_HOLD "HOLD"
|
#define TR_HOLD "Hold"
|
||||||
#define TR_NONE "NONE"
|
#define TR_NONE "None"
|
||||||
#define TR_MENUSENSOR "SENSOR"
|
#define TR_MENUSENSOR "SENSOR"
|
||||||
#define TR_POWERMETER_PEAK "Peak"
|
#define TR_POWERMETER_PEAK "Peak"
|
||||||
#define TR_POWERMETER_POWER "Power"
|
#define TR_POWERMETER_POWER "Power"
|
||||||
|
|||||||
@@ -951,8 +951,8 @@
|
|||||||
#define TR_REG_ID TR("Reg. ID", "Registration ID")
|
#define TR_REG_ID TR("Reg. ID", "Registration ID")
|
||||||
#define TR_OWNER_ID "Owner ID"
|
#define TR_OWNER_ID "Owner ID"
|
||||||
#define TR_PINMAPSET "PINMAP"
|
#define TR_PINMAPSET "PINMAP"
|
||||||
#define TR_HOLD "HOLD"
|
#define TR_HOLD "Hold"
|
||||||
#define TR_NONE "NONE"
|
#define TR_NONE "None"
|
||||||
#define TR_MENUSENSOR "CZUJNIK"
|
#define TR_MENUSENSOR "CZUJNIK"
|
||||||
#define TR_POWERMETER_PEAK "Peak"
|
#define TR_POWERMETER_PEAK "Peak"
|
||||||
#define TR_POWERMETER_POWER "Power"
|
#define TR_POWERMETER_POWER "Power"
|
||||||
|
|||||||
@@ -955,8 +955,8 @@
|
|||||||
#define TR_REG_ID TR("Reg. ID", "Registration ID")
|
#define TR_REG_ID TR("Reg. ID", "Registration ID")
|
||||||
#define TR_OWNER_ID "Owner ID"
|
#define TR_OWNER_ID "Owner ID"
|
||||||
#define TR_PINMAPSET "PINMAP"
|
#define TR_PINMAPSET "PINMAP"
|
||||||
#define TR_HOLD "HOLD"
|
#define TR_HOLD "Hold"
|
||||||
#define TR_NONE "NONE"
|
#define TR_NONE "None"
|
||||||
#define TR_MENUSENSOR "SENSOR"
|
#define TR_MENUSENSOR "SENSOR"
|
||||||
#define TR_POWERMETER_PEAK "Peak"
|
#define TR_POWERMETER_PEAK "Peak"
|
||||||
#define TR_POWERMETER_POWER "Power"
|
#define TR_POWERMETER_POWER "Power"
|
||||||
|
|||||||
@@ -964,8 +964,8 @@
|
|||||||
#define TR_REG_ID TR("Reg. ID", "Registration ID")
|
#define TR_REG_ID TR("Reg. ID", "Registration ID")
|
||||||
#define TR_OWNER_ID "Owner ID"
|
#define TR_OWNER_ID "Owner ID"
|
||||||
#define TR_PINMAPSET "PINMAP"
|
#define TR_PINMAPSET "PINMAP"
|
||||||
#define TR_HOLD "HOLD"
|
#define TR_HOLD "Hold"
|
||||||
#define TR_NONE "NONE"
|
#define TR_NONE "None"
|
||||||
#define TR_MENUSENSOR "SENSOR"
|
#define TR_MENUSENSOR "SENSOR"
|
||||||
#define TR_POWERMETER_PEAK "Peak"
|
#define TR_POWERMETER_PEAK "Peak"
|
||||||
#define TR_POWERMETER_POWER "Power"
|
#define TR_POWERMETER_POWER "Power"
|
||||||
|
|||||||
Reference in New Issue
Block a user