Fix compiling errors for the dgus display

Handler code section needed for any leveling not just probe.

Fix for renamed variables upstream.

Added default to switch statement to resolve compile warning.
This commit is contained in:
Bob Anthony
2023-02-18 03:45:50 -06:00
parent 6dec98e54c
commit 9697434981
2 changed files with 7 additions and 5 deletions
@@ -930,7 +930,7 @@ uint16_t CreateRgb(double h, double s, double v) {
return (((static_cast<uint8_t>(out.r * 255) & 0xf8)<<8) + ((static_cast<uint8_t>(out.g * 255) & 0xfc)<<3) + (static_cast<uint8_t>(out.b * 255)>>3));
}
#if HAS_BED_PROBE
#if HAS_LEVELING
void DGUSScreenHandler::UpdateMeshValue(const int8_t x, const int8_t y, const float z) {
//SERIAL_ECHOPGM("X", x);
//SERIAL_ECHOPGM(" Y", y);
+6 -4
View File
@@ -226,8 +226,8 @@ bool hasPrintTimer = false;
void onPidTuning(const result_t rst) {
// Called for temperature PID tuning result
switch (rst) {
case PID_BAD_EXTRUDER_NUM:
PIDHandler::result_message = GET_TEXT(MSG_PID_BAD_EXTRUDER_NUM);
case PID_BAD_HEATER_ID:
PIDHandler::result_message = GET_TEXT(MSG_PID_BAD_HEATER_ID);
ScreenHandler.setstatusmessagePGM(PIDHandler::result_message);
break;
case PID_TEMP_TOO_HIGH:
@@ -237,11 +237,13 @@ bool hasPrintTimer = false;
case PID_TUNING_TIMEOUT:
PIDHandler::result_message = GET_TEXT(MSG_PID_TIMEOUT);
ScreenHandler.setstatusmessagePGM(PIDHandler::result_message);
break;
break;
case PID_DONE:
PIDHandler::result_message = GET_TEXT(MSG_PID_AUTOTUNE_DONE);
ScreenHandler.setstatusmessagePGM(PIDHandler::result_message);
break;
break;
default:
break;
}
}
#endif