fix motorcontrol keys

This commit is contained in:
BPanther
2019-10-27 16:24:47 +01:00
committed by Thilo Graf
parent d6b6f3362f
commit 670a6f951e

View File

@@ -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,