Pārlūkot izejas kodu

Fixed M109 timer overflow (reported by triffid)

Erik van der Zalm 12 gadus atpakaļ
vecāks
revīzija
f87c80889f
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      Marlin/Marlin.pde

+ 1
- 1
Marlin/Marlin.pde Parādīt failu

@@ -842,7 +842,7 @@ void process_commands()
842 842
         /* continue to loop until we have reached the target temp   
843 843
           _and_ until TEMP_RESIDENCY_TIME hasn't passed since we reached it */
844 844
         while((residencyStart == -1) ||
845
-              (residencyStart > -1 && (millis() - residencyStart) < TEMP_RESIDENCY_TIME*1000) ) {
845
+              (residencyStart > -1 && (millis() - residencyStart) < TEMP_RESIDENCY_TIME*1000l) ) {
846 846
       #else
847 847
         while ( target_direction ? (isHeatingHotend(tmp_extruder)) : (isCoolingHotend(tmp_extruder)&&(CooldownNoWait==false)) ) {
848 848
       #endif //TEMP_RESIDENCY_TIME

Notiek ielāde…
Atcelt
Saglabāt