瀏覽代碼

Move MAX_EXTRUDERS to pins.h

Scott Lahteine 8 年之前
父節點
當前提交
ad64723354
共有 3 個文件被更改,包括 5 次插入2 次删除
  1. 0
    1
      Marlin/configuration_store.cpp
  2. 4
    0
      Marlin/pins.h
  3. 1
    1
      Marlin/temperature.cpp

+ 0
- 1
Marlin/configuration_store.cpp 查看文件

@@ -40,7 +40,6 @@
40 40
 
41 41
 // Change EEPROM version if these are changed:
42 42
 #define EEPROM_OFFSET 100
43
-#define MAX_EXTRUDERS 4
44 43
 
45 44
 /**
46 45
  * V24 EEPROM Layout:

+ 4
- 0
Marlin/pins.h 查看文件

@@ -275,6 +275,10 @@
275 275
   #define SUICIDE_PIN -1
276 276
 #endif
277 277
 
278
+#ifndef MAX_EXTRUDERS
279
+  #define MAX_EXTRUDERS 4
280
+#endif
281
+
278 282
 // Marlin needs to account for pins that equal -1
279 283
 #define marlinAnalogInputToDigitalPin(p) ((p) == -1 ? -1 : analogInputToDigitalPin(p))
280 284
 

+ 1
- 1
Marlin/temperature.cpp 查看文件

@@ -151,7 +151,7 @@ volatile bool Temperature::temp_meas_ready = false;
151 151
   millis_t Temperature::next_bed_check_ms;
152 152
 #endif
153 153
 
154
-unsigned long Temperature::raw_temp_value[4] = { 0 };
154
+unsigned long Temperature::raw_temp_value[MAX_EXTRUDERS] = { 0 };
155 155
 unsigned long Temperature::raw_temp_bed_value = 0;
156 156
 
157 157
 // Init min and max temp with extreme values to prevent false errors during startup

Loading…
取消
儲存