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