Fix TOUCH_UI_FTDI_EVE bugs (#16540)
This commit is contained in:
parent
1bb1ce7475
commit
5bd66241df
|
@ -80,7 +80,7 @@ uint16_t CLCD::FontMetrics::get_text_width(progmem_str str, size_t n) const {
|
||||||
/************************** HOST COMMAND FUNCTION *********************************/
|
/************************** HOST COMMAND FUNCTION *********************************/
|
||||||
|
|
||||||
void CLCD::host_cmd (unsigned char host_command, unsigned char byte2) { // Sends 24-Bit Host Command to LCD
|
void CLCD::host_cmd (unsigned char host_command, unsigned char byte2) { // Sends 24-Bit Host Command to LCD
|
||||||
if (host_command != ACTIVE) {
|
if (host_command != FTDI::ACTIVE) {
|
||||||
host_command |= 0x40;
|
host_command |= 0x40;
|
||||||
}
|
}
|
||||||
spi_ftdi_select();
|
spi_ftdi_select();
|
||||||
|
@ -1062,7 +1062,7 @@ void CLCD::init() {
|
||||||
host_cmd(CLKINT, 0);
|
host_cmd(CLKINT, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
host_cmd(ACTIVE, 0); // Activate the System Clock
|
host_cmd(FTDI::ACTIVE, 0); // Activate the System Clock
|
||||||
|
|
||||||
/* read the device-id until it returns 0x7c or times out, should take less than 150ms */
|
/* read the device-id until it returns 0x7c or times out, should take less than 150ms */
|
||||||
uint8_t counter;
|
uint8_t counter;
|
||||||
|
|
|
@ -130,6 +130,28 @@ namespace ExtUI {
|
||||||
void onMeshUpdate(const int8_t, const int8_t, const float) {
|
void onMeshUpdate(const int8_t, const int8_t, const float) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if HAS_PID_HEATING
|
||||||
|
void OnPidTuning(const result_t rst) {
|
||||||
|
// Called for temperature PID tuning result
|
||||||
|
SERIAL_ECHOLNPAIR("OnPidTuning:", rst);
|
||||||
|
switch (rst) {
|
||||||
|
case PID_BAD_EXTRUDER_NUM:
|
||||||
|
StatusScreen::setStatusMessage(MSG_PID_BAD_EXTRUDER_NUM);
|
||||||
|
break;
|
||||||
|
case PID_TEMP_TOO_HIGH:
|
||||||
|
StatusScreen::setStatusMessage(MSG_PID_TEMP_TOO_HIGH);
|
||||||
|
break;
|
||||||
|
case PID_TUNING_TIMEOUT:
|
||||||
|
StatusScreen::setStatusMessage(MSG_PID_TIMEOUT);
|
||||||
|
break;
|
||||||
|
case PID_DONE:
|
||||||
|
StatusScreen::setStatusMessage(MSG_PID_AUTOTUNE_FINISHED);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
GOTO_SCREEN(StatusScreen);
|
||||||
|
}
|
||||||
|
#endif // HAS_PID_HEATING
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // TOUCH_UI_FTDI_EVE
|
#endif // TOUCH_UI_FTDI_EVE
|
||||||
|
|
|
@ -72,7 +72,7 @@ void NudgeNozzleScreen::onRedraw(draw_mode_t what) {
|
||||||
w.text_field(0, GET_TEXT_F(MSG_ZPROBE_ZOFFSET), str);
|
w.text_field(0, GET_TEXT_F(MSG_ZPROBE_ZOFFSET), str);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if EXTRUDERS > 1
|
#if HOTENDS > 1
|
||||||
format_position(str, getNozzleOffset_mm(X, E1), getNozzleOffset_mm(Y, E1), getNozzleOffset_mm(Z, E1));
|
format_position(str, getNozzleOffset_mm(X, E1), getNozzleOffset_mm(Y, E1), getNozzleOffset_mm(Z, E1));
|
||||||
w.text_field(0, GET_TEXT_F(MSG_OFFSETS_MENU), str);
|
w.text_field(0, GET_TEXT_F(MSG_OFFSETS_MENU), str);
|
||||||
#endif
|
#endif
|
||||||
|
@ -99,8 +99,7 @@ bool NudgeNozzleScreen::onTouchHeld(uint8_t tag) {
|
||||||
case 8: screen_data.NudgeNozzleScreen.link_nozzles = !link; break;
|
case 8: screen_data.NudgeNozzleScreen.link_nozzles = !link; break;
|
||||||
#endif
|
#endif
|
||||||
case 9: screen_data.NudgeNozzleScreen.show_offsets = !screen_data.NudgeNozzleScreen.show_offsets; break;
|
case 9: screen_data.NudgeNozzleScreen.show_offsets = !screen_data.NudgeNozzleScreen.show_offsets; break;
|
||||||
default:
|
default: return false;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
#if EXTRUDERS > 1 || HAS_BED_PROBE
|
#if EXTRUDERS > 1 || HAS_BED_PROBE
|
||||||
SaveSettingsDialogBox::settingsChanged();
|
SaveSettingsDialogBox::settingsChanged();
|
||||||
|
@ -112,9 +111,9 @@ bool NudgeNozzleScreen::onTouchEnd(uint8_t tag) {
|
||||||
if (tag == 1) {
|
if (tag == 1) {
|
||||||
SaveSettingsDialogBox::promptToSaveSettings();
|
SaveSettingsDialogBox::promptToSaveSettings();
|
||||||
return true;
|
return true;
|
||||||
} else {
|
|
||||||
return BaseNumericAdjustmentScreen::onTouchEnd(tag);
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
return BaseNumericAdjustmentScreen::onTouchEnd(tag);
|
||||||
}
|
}
|
||||||
|
|
||||||
void NudgeNozzleScreen::onIdle() {
|
void NudgeNozzleScreen::onIdle() {
|
||||||
|
|
Loading…
Reference in a new issue