Browse Source

Move MAX_EXTRUDERS to pins.h

Scott Lahteine 8 years ago
parent
commit
ad64723354
3 changed files with 5 additions and 2 deletions
  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 View File

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

+ 4
- 0
Marlin/pins.h View File

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

+ 1
- 1
Marlin/temperature.cpp View File

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

Loading…
Cancel
Save