mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 09:51:22 +02:00
fix motorcontrol keys
This commit is contained in:
@@ -251,7 +251,7 @@ int CMotorControl::exec(CMenuTarget* parent, const std::string &)
|
||||
paintStatus();
|
||||
}
|
||||
}
|
||||
else if (msg == CRCInput::RC_7) {
|
||||
else if (msg == CRCInput::RC_7 || msg == CRCInput::RC_yellow) {
|
||||
if (installerMenue) {
|
||||
printf("[motorcontrol] 7 key received... goto reference position\n");
|
||||
g_Zapit->sendMotorCommand(0xE0, 0x31, 0x6B, 1, 0, 0);
|
||||
@@ -301,7 +301,7 @@ int CMotorControl::exec(CMenuTarget* parent, const std::string &)
|
||||
printf("[motorcontrol] blue key received... toggle stepmode on/off: %d\n", stepMode);
|
||||
paintStatus();
|
||||
}
|
||||
else if (msg == CRCInput::RC_info) {
|
||||
else if (msg == CRCInput::RC_info || msg == CRCInput::RC_help) {
|
||||
network = "waiting for NIT...";
|
||||
paintStatus();
|
||||
readNetwork();
|
||||
@@ -522,7 +522,7 @@ void CMotorControl::paintMenu()
|
||||
paintLine(xpos2, ypos, width2, g_Locale->getText(LOCALE_MOTORCONTROL_POS_DECREASE));
|
||||
paintLine(xpos1, &ypos, width1, "(blue)");
|
||||
paintLine(xpos2, ypos, width2, g_Locale->getText(LOCALE_MOTORCONTROL_STEP_DRIVE));
|
||||
paintLine(xpos1, &ypos, width1, "(info)");
|
||||
paintLine(xpos1, &ypos, width1, "(info/help)");
|
||||
paintLine(xpos2, ypos, width2, g_Locale->getText(LOCALE_MOTORCONTROL_NETWORK));
|
||||
#else
|
||||
paintLine(xpos1, xpos2, &ypos, width2, NEUTRINO_ICON_BUTTON_0,
|
||||
|
Reference in New Issue
Block a user