Browse Source

🩹 Fix DWIN float debugging (#23601)

FB4S_WIFI
DejitaruJin 3 years ago
committed by Scott Lahteine
parent
commit
2f48c30445
  1. 2
      Marlin/src/lcd/extui/dgus/fysetc/DGUSScreenHandler.h
  2. 2
      Marlin/src/lcd/extui/dgus/hiprecy/DGUSScreenHandler.h
  3. 4
      Marlin/src/lcd/extui/dgus/mks/DGUSScreenHandler.cpp
  4. 2
      Marlin/src/lcd/extui/dgus/mks/DGUSScreenHandler.h
  5. 2
      Marlin/src/lcd/extui/dgus/origin/DGUSScreenHandler.h

2
Marlin/src/lcd/extui/dgus/fysetc/DGUSScreenHandler.h

@ -206,7 +206,7 @@ public:
static void DGUSLCD_SendFloatAsIntValueToDisplay(DGUS_VP_Variable &var) {
if (var.memadr) {
float f = *(float *)var.memadr;
DEBUG_ECHOLNPGM(" >> ", f, 6);
DEBUG_ECHOLNPAIR_F(" >> ", f, 6);
f *= cpow(10, decimals);
dgusdisplay.WriteVariable(var.VP, (int16_t)f);
}

2
Marlin/src/lcd/extui/dgus/hiprecy/DGUSScreenHandler.h

@ -206,7 +206,7 @@ public:
static void DGUSLCD_SendFloatAsIntValueToDisplay(DGUS_VP_Variable &var) {
if (var.memadr) {
float f = *(float *)var.memadr;
DEBUG_ECHOLNPGM(" >> ", f, 6);
DEBUG_ECHOLNPAIR_F(" >> ", f, 6);
f *= cpow(10, decimals);
dgusdisplay.WriteVariable(var.VP, (int16_t)f);
}

4
Marlin/src/lcd/extui/dgus/mks/DGUSScreenHandler.cpp

@ -93,7 +93,7 @@ void DGUSScreenHandler::DGUSLCD_SendFanToDisplay(DGUS_VP_Variable &var) {
void DGUSScreenHandler::DGUSLCD_SendBabyStepToDisplay_MKS(DGUS_VP_Variable &var) {
float value = current_position.z;
DEBUG_ECHOLNPGM(" >> ", value, 6);
DEBUG_ECHOLNPAIR_F(" >> ", value, 6);
value *= cpow(10, 2);
dgusdisplay.WriteVariable(VP_SD_Print_Baby, (uint16_t)value);
}
@ -756,7 +756,7 @@ void DGUSScreenHandler::HandleManualMove(DGUS_VP_Variable &var, void *val_ptr) {
else if (manualMoveStep == 0x02) manualMoveStep = 100;
else if (manualMoveStep == 0x03) manualMoveStep = 1000;
DEBUG_ECHOLNPGM("QUEUE LEN:", queue.length);
DEBUG_ECHOLNPGM("QUEUE LEN:", queue.ring_buffer.length);
if (!print_job_timer.isPaused() && !queue.ring_buffer.empty())
return;

2
Marlin/src/lcd/extui/dgus/mks/DGUSScreenHandler.h

@ -273,7 +273,7 @@ public:
static void DGUSLCD_SendFloatAsIntValueToDisplay(DGUS_VP_Variable &var) {
if (var.memadr) {
float f = *(float *)var.memadr;
DEBUG_ECHOLNPGM(" >> ", f, 6);
DEBUG_ECHOLNPAIR_F(" >> ", f, 6);
f *= cpow(10, decimals);
dgusdisplay.WriteVariable(var.VP, (int16_t)f);
}

2
Marlin/src/lcd/extui/dgus/origin/DGUSScreenHandler.h

@ -206,7 +206,7 @@ public:
static void DGUSLCD_SendFloatAsIntValueToDisplay(DGUS_VP_Variable &var) {
if (var.memadr) {
float f = *(float *)var.memadr;
DEBUG_ECHOLNPGM(" >> ", f, 6);
DEBUG_ECHOLNPAIR_F(" >> ", f, 6);
f *= cpow(10, decimals);
dgusdisplay.WriteVariable(var.VP, (int16_t)f);
}

Loading…
Cancel
Save