Bläddra i källkod

Merge branch 'Development-Marlin' into Development

Edward Patel 10 år sedan
förälder
incheckning
48b1c3822f
4 ändrade filer med 28 tillägg och 33 borttagningar
  1. 5
    5
      Marlin/Conditionals.h
  2. 1
    1
      Marlin/Configuration_adv.h
  3. 22
    23
      Marlin/temperature.cpp
  4. 0
    4
      README.md

+ 5
- 5
Marlin/Conditionals.h Visa fil

349
   /**
349
   /**
350
    * Shorthand for pin tests, for temperature.cpp
350
    * Shorthand for pin tests, for temperature.cpp
351
    */
351
    */
352
-  #define HAS_TEMP_0 (defined(TEMP_0_PIN) && TEMP_0_PIN >= 0)
353
-  #define HAS_TEMP_1 (defined(TEMP_1_PIN) && TEMP_1_PIN >= 0)
354
-  #define HAS_TEMP_2 (defined(TEMP_2_PIN) && TEMP_2_PIN >= 0)
355
-  #define HAS_TEMP_3 (defined(TEMP_3_PIN) && TEMP_3_PIN >= 0)
356
-  #define HAS_TEMP_BED (defined(TEMP_BED_PIN) && TEMP_BED_PIN >= 0)
352
+  #define HAS_TEMP_0 (defined(TEMP_0_PIN) && TEMP_0_PIN >= 0 && TEMP_SENSOR_0 != 0 && TEMP_SENSOR_0 != -2)
353
+  #define HAS_TEMP_1 (defined(TEMP_1_PIN) && TEMP_1_PIN >= 0 && TEMP_SENSOR_1 != 0)
354
+  #define HAS_TEMP_2 (defined(TEMP_2_PIN) && TEMP_2_PIN >= 0 && TEMP_SENSOR_2 != 0)
355
+  #define HAS_TEMP_3 (defined(TEMP_3_PIN) && TEMP_3_PIN >= 0 && TEMP_SENSOR_3 != 0)
356
+  #define HAS_TEMP_BED (defined(TEMP_BED_PIN) && TEMP_BED_PIN >= 0 && TEMP_SENSOR_BED != 0)
357
   #define HAS_FILAMENT_SENSOR (defined(FILAMENT_SENSOR) && defined(FILWIDTH_PIN) && FILWIDTH_PIN >= 0)
357
   #define HAS_FILAMENT_SENSOR (defined(FILAMENT_SENSOR) && defined(FILWIDTH_PIN) && FILWIDTH_PIN >= 0)
358
   #define HAS_HEATER_0 (defined(HEATER_0_PIN) && HEATER_0_PIN >= 0)
358
   #define HAS_HEATER_0 (defined(HEATER_0_PIN) && HEATER_0_PIN >= 0)
359
   #define HAS_HEATER_1 (defined(HEATER_1_PIN) && HEATER_1_PIN >= 0)
359
   #define HAS_HEATER_1 (defined(HEATER_1_PIN) && HEATER_1_PIN >= 0)

+ 1
- 1
Marlin/Configuration_adv.h Visa fil

178
 #define X_HOME_RETRACT_MM 5
178
 #define X_HOME_RETRACT_MM 5
179
 #define Y_HOME_RETRACT_MM 5
179
 #define Y_HOME_RETRACT_MM 5
180
 #define Z_HOME_RETRACT_MM 2
180
 #define Z_HOME_RETRACT_MM 2
181
-#define HOMING_BUMP_DIVISOR {10, 10, 20}  // Re-Bump Speed Divisor (Divides the Homing Feedrate)
181
+#define HOMING_BUMP_DIVISOR {2, 2, 4}  // Re-Bump Speed Divisor (Divides the Homing Feedrate)
182
 //#define QUICK_HOME  //if this is defined, if both x and y are to be homed, a diagonal move will be performed initially.
182
 //#define QUICK_HOME  //if this is defined, if both x and y are to be homed, a diagonal move will be performed initially.
183
 
183
 
184
 #define AXIS_RELATIVE_MODES {false, false, false, false}
184
 #define AXIS_RELATIVE_MODES {false, false, false, false}

+ 22
- 23
Marlin/temperature.cpp Visa fil

1543
       if (minttemp_raw[0] GE0 current_temperature_raw[0]) min_temp_error(0);
1543
       if (minttemp_raw[0] GE0 current_temperature_raw[0]) min_temp_error(0);
1544
     #endif
1544
     #endif
1545
 
1545
 
1546
-    #if EXTRUDERS > 1
1546
+    #if HAS_TEMP_1
1547
       #if HEATER_1_RAW_LO_TEMP > HEATER_1_RAW_HI_TEMP
1547
       #if HEATER_1_RAW_LO_TEMP > HEATER_1_RAW_HI_TEMP
1548
         #define GE1 <=
1548
         #define GE1 <=
1549
       #else
1549
       #else
1550
         #define GE1 >=
1550
         #define GE1 >=
1551
       #endif
1551
       #endif
1552
       if (current_temperature_raw[1] GE1 maxttemp_raw[1]) max_temp_error(1);
1552
       if (current_temperature_raw[1] GE1 maxttemp_raw[1]) max_temp_error(1);
1553
-      if (minttemp_raw[1] GE0 current_temperature_raw[1]) min_temp_error(1);
1554
-
1555
-      #if EXTRUDERS > 2
1556
-        #if HEATER_2_RAW_LO_TEMP > HEATER_2_RAW_HI_TEMP
1557
-          #define GE2 <=
1558
-        #else
1559
-          #define GE2 >=
1560
-        #endif
1561
-        if (current_temperature_raw[2] GE2 maxttemp_raw[2]) max_temp_error(2);
1562
-        if (minttemp_raw[2] GE0 current_temperature_raw[2]) min_temp_error(2);
1553
+      if (minttemp_raw[1] GE1 current_temperature_raw[1]) min_temp_error(1);
1554
+    #endif // TEMP_SENSOR_1
1563
 
1555
 
1564
-        #if EXTRUDERS > 3
1565
-          #if HEATER_3_RAW_LO_TEMP > HEATER_3_RAW_HI_TEMP
1566
-            #define GE3 <=
1567
-          #else
1568
-            #define GE3 >=
1569
-          #endif
1570
-          if (current_temperature_raw[3] GE3 maxttemp_raw[3]) max_temp_error(3);
1571
-          if (minttemp_raw[3] GE0 current_temperature_raw[3]) min_temp_error(3);
1556
+    #if HAS_TEMP_2
1557
+      #if HEATER_2_RAW_LO_TEMP > HEATER_2_RAW_HI_TEMP
1558
+        #define GE2 <=
1559
+      #else
1560
+        #define GE2 >=
1561
+      #endif
1562
+      if (current_temperature_raw[2] GE2 (maxttemp_raw[2]) max_temp_error(2);
1563
+      if (minttemp_raw[2] GE2 current_temperature_raw[2]) min_temp_error(2);
1564
+    #endif // TEMP_SENSOR_2
1572
 
1565
 
1573
-        #endif // EXTRUDERS > 3
1574
-      #endif // EXTRUDERS > 2
1575
-    #endif // EXTRUDERS > 1
1566
+    #if HAS_TEMP_3
1567
+      #if HEATER_3_RAW_LO_TEMP > HEATER_3_RAW_HI_TEMP
1568
+        #define GE3 <=
1569
+      #else
1570
+        #define GE3 >=
1571
+      #endif
1572
+      if (current_temperature_raw[3] GE3 maxttemp_raw[3]) max_temp_error(3);
1573
+      if (minttemp_raw[3] GE3 current_temperature_raw[3]) min_temp_error(3);
1574
+    #endif // TEMP_SENSOR_3
1576
 
1575
 
1577
-    #if defined(BED_MAXTEMP) && (TEMP_SENSOR_BED != 0)
1576
+    #if HAS_TEMP_BED
1578
       #if HEATER_BED_RAW_LO_TEMP > HEATER_BED_RAW_HI_TEMP
1577
       #if HEATER_BED_RAW_LO_TEMP > HEATER_BED_RAW_HI_TEMP
1579
         #define GEBED <=
1578
         #define GEBED <=
1580
       #else
1579
       #else

+ 0
- 4
README.md Visa fil

29
 [![Coverity Scan Build Status](https://scan.coverity.com/projects/2224/badge.svg)](https://scan.coverity.com/projects/2224)
29
 [![Coverity Scan Build Status](https://scan.coverity.com/projects/2224/badge.svg)](https://scan.coverity.com/projects/2224)
30
 [![Travis Build Status](https://travis-ci.org/MarlinFirmware/Marlin.svg)](https://travis-ci.org/MarlinFirmware/Marlin)
30
 [![Travis Build Status](https://travis-ci.org/MarlinFirmware/Marlin.svg)](https://travis-ci.org/MarlinFirmware/Marlin)
31
 
31
 
32
-What bugs are we working on: [Bug Fixing Round 3](https://github.com/MarlinFirmware/Marlin/milestones/Bug%20Fixing%20Round%203)
33
-
34
 ## Contact
32
 ## Contact
35
 
33
 
36
 __IRC:__ #marlin-firmware @freenode ([WebChat Client](https://webchat.freenode.net/?channels=marlin-firmware)
34
 __IRC:__ #marlin-firmware @freenode ([WebChat Client](https://webchat.freenode.net/?channels=marlin-firmware)
37
 
35
 
38
-__Mailing List:__ marlin@lists.0l.de ([Subscribe](http://lists.0l.de/mailman/listinfo/marlin), [Archive](http://lists.0l.de/pipermail/marlin/))
39
-
40
 ## Credits
36
 ## Credits
41
 
37
 
42
 The current Marlin dev team consists of:
38
 The current Marlin dev team consists of:

Laddar…
Avbryt
Spara