Browse Source

Use configured temp window for Chiron

Scott Lahteine 4 years ago
parent
commit
4e10f46899
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/lcd/extui/lib/anycubic_chiron/chiron_tft.cpp

+ 2
- 2
Marlin/src/lcd/extui/lib/anycubic_chiron/chiron_tft.cpp View File

@@ -406,7 +406,7 @@ void ChironTFT::CheckHeaters() {
406 406
 
407 407
   // Update panel with hotend heater status
408 408
   if (hotend_state != AC_heater_temp_reached) {
409
-    if (WITHIN(getActualTemp_celsius(E0) - getTargetTemp_celsius(E0), -1, 1)) {
409
+    if (WITHIN(getActualTemp_celsius(E0) - getTargetTemp_celsius(E0), -(TEMP_WINDOW), TEMP_WINDOW)) {
410 410
       SendtoTFTLN(AC_msg_nozzle_heating_done);
411 411
       hotend_state = AC_heater_temp_reached;
412 412
     }
@@ -414,7 +414,7 @@ void ChironTFT::CheckHeaters() {
414 414
 
415 415
   // Update panel with bed heater status
416 416
   if (hotbed_state != AC_heater_temp_reached) {
417
-    if (WITHIN(getActualTemp_celsius(BED) - getTargetTemp_celsius(BED), -0.5, 0.5)) {
417
+    if (WITHIN(getActualTemp_celsius(BED) - getTargetTemp_celsius(BED), -(TEMP_BED_WINDOW), TEMP_BED_WINDOW)) {
418 418
       SendtoTFTLN(AC_msg_bed_heating_done);
419 419
       hotbed_state = AC_heater_temp_reached;
420 420
     }

Loading…
Cancel
Save