fix motorcontrol keys

Origin commit data
------------------
Branch: ni/coolstream
Commit: e39b6a78a5
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2019-10-18 (Fri, 18 Oct 2019)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
BPanther
2019-10-18 22:33:31 +02:00
committed by vanhofen
parent 622e696197
commit 984219f1cc

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,