🩹 Fix DWIN float debugging (#23601)
This commit is contained in:
parent
5090687682
commit
2f48c30445
|
@ -206,7 +206,7 @@ public:
|
||||||
static void DGUSLCD_SendFloatAsIntValueToDisplay(DGUS_VP_Variable &var) {
|
static void DGUSLCD_SendFloatAsIntValueToDisplay(DGUS_VP_Variable &var) {
|
||||||
if (var.memadr) {
|
if (var.memadr) {
|
||||||
float f = *(float *)var.memadr;
|
float f = *(float *)var.memadr;
|
||||||
DEBUG_ECHOLNPGM(" >> ", f, 6);
|
DEBUG_ECHOLNPAIR_F(" >> ", f, 6);
|
||||||
f *= cpow(10, decimals);
|
f *= cpow(10, decimals);
|
||||||
dgusdisplay.WriteVariable(var.VP, (int16_t)f);
|
dgusdisplay.WriteVariable(var.VP, (int16_t)f);
|
||||||
}
|
}
|
||||||
|
|
|
@ -206,7 +206,7 @@ public:
|
||||||
static void DGUSLCD_SendFloatAsIntValueToDisplay(DGUS_VP_Variable &var) {
|
static void DGUSLCD_SendFloatAsIntValueToDisplay(DGUS_VP_Variable &var) {
|
||||||
if (var.memadr) {
|
if (var.memadr) {
|
||||||
float f = *(float *)var.memadr;
|
float f = *(float *)var.memadr;
|
||||||
DEBUG_ECHOLNPGM(" >> ", f, 6);
|
DEBUG_ECHOLNPAIR_F(" >> ", f, 6);
|
||||||
f *= cpow(10, decimals);
|
f *= cpow(10, decimals);
|
||||||
dgusdisplay.WriteVariable(var.VP, (int16_t)f);
|
dgusdisplay.WriteVariable(var.VP, (int16_t)f);
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,7 +93,7 @@ void DGUSScreenHandler::DGUSLCD_SendFanToDisplay(DGUS_VP_Variable &var) {
|
||||||
|
|
||||||
void DGUSScreenHandler::DGUSLCD_SendBabyStepToDisplay_MKS(DGUS_VP_Variable &var) {
|
void DGUSScreenHandler::DGUSLCD_SendBabyStepToDisplay_MKS(DGUS_VP_Variable &var) {
|
||||||
float value = current_position.z;
|
float value = current_position.z;
|
||||||
DEBUG_ECHOLNPGM(" >> ", value, 6);
|
DEBUG_ECHOLNPAIR_F(" >> ", value, 6);
|
||||||
value *= cpow(10, 2);
|
value *= cpow(10, 2);
|
||||||
dgusdisplay.WriteVariable(VP_SD_Print_Baby, (uint16_t)value);
|
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 == 0x02) manualMoveStep = 100;
|
||||||
else if (manualMoveStep == 0x03) manualMoveStep = 1000;
|
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())
|
if (!print_job_timer.isPaused() && !queue.ring_buffer.empty())
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -273,7 +273,7 @@ public:
|
||||||
static void DGUSLCD_SendFloatAsIntValueToDisplay(DGUS_VP_Variable &var) {
|
static void DGUSLCD_SendFloatAsIntValueToDisplay(DGUS_VP_Variable &var) {
|
||||||
if (var.memadr) {
|
if (var.memadr) {
|
||||||
float f = *(float *)var.memadr;
|
float f = *(float *)var.memadr;
|
||||||
DEBUG_ECHOLNPGM(" >> ", f, 6);
|
DEBUG_ECHOLNPAIR_F(" >> ", f, 6);
|
||||||
f *= cpow(10, decimals);
|
f *= cpow(10, decimals);
|
||||||
dgusdisplay.WriteVariable(var.VP, (int16_t)f);
|
dgusdisplay.WriteVariable(var.VP, (int16_t)f);
|
||||||
}
|
}
|
||||||
|
|
|
@ -206,7 +206,7 @@ public:
|
||||||
static void DGUSLCD_SendFloatAsIntValueToDisplay(DGUS_VP_Variable &var) {
|
static void DGUSLCD_SendFloatAsIntValueToDisplay(DGUS_VP_Variable &var) {
|
||||||
if (var.memadr) {
|
if (var.memadr) {
|
||||||
float f = *(float *)var.memadr;
|
float f = *(float *)var.memadr;
|
||||||
DEBUG_ECHOLNPGM(" >> ", f, 6);
|
DEBUG_ECHOLNPAIR_F(" >> ", f, 6);
|
||||||
f *= cpow(10, decimals);
|
f *= cpow(10, decimals);
|
||||||
dgusdisplay.WriteVariable(var.VP, (int16_t)f);
|
dgusdisplay.WriteVariable(var.VP, (int16_t)f);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue