瀏覽代碼

Apply NOLESS/NOMORE

Scott Lahteine 5 年之前
父節點
當前提交
d3bb5b69ba
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      Marlin/src/HAL/HAL_LINUX/hardware/Heater.cpp
  2. 1
    1
      Marlin/src/sd/cardreader.cpp

+ 1
- 1
Marlin/src/HAL/HAL_LINUX/hardware/Heater.cpp 查看文件

@@ -49,7 +49,7 @@ void Heater::update() {
49 49
     last = now;
50 50
     heat += (heater_state - heat) * (delta / 1000000000.0);
51 51
 
52
-    if (heat < room_temp_raw) heat = room_temp_raw;
52
+    NOLESS(heat, room_temp_raw);
53 53
     Gpio::pin_map[analogInputToDigitalPin(adc_pin)].value = 0xFFFF - (uint16_t)heat;
54 54
   }
55 55
 }

+ 1
- 1
Marlin/src/sd/cardreader.cpp 查看文件

@@ -798,7 +798,7 @@ void CardReader::setroot() {
798 798
 
799 799
       // Never sort more than the max allowed
800 800
       // If you use folders to organize, 20 may be enough
801
-      if (fileCnt > SDSORT_LIMIT) fileCnt = SDSORT_LIMIT;
801
+      NOMORE(fileCnt, SDSORT_LIMIT);
802 802
 
803 803
       // Sort order is always needed. May be static or dynamic.
804 804
       #if ENABLED(SDSORT_DYNAMIC_RAM)

Loading…
取消
儲存