瀏覽代碼

Fixed M109 timer overflow (reported by triffid)

Erik van der Zalm 13 年之前
父節點
當前提交
f87c80889f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      Marlin/Marlin.pde

+ 1
- 1
Marlin/Marlin.pde 查看文件

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

Loading…
取消
儲存