Bläddra i källkod

Fixed RAMPS 1.2 support (Found and fixed by rrhb)

Erik van der Zalm 13 år sedan
förälder
incheckning
ed951b1977
2 ändrade filer med 2 tillägg och 4 borttagningar
  1. 1
    1
      Marlin/Marlin.pde
  2. 1
    3
      Marlin/pins.h

+ 1
- 1
Marlin/Marlin.pde Visa fil

299
 
299
 
300
 void loop()
300
 void loop()
301
 {
301
 {
302
-  if(buflen<3)
302
+  if(buflen < (BUFSIZE-1))
303
     get_command();
303
     get_command();
304
   #ifdef SDSUPPORT
304
   #ifdef SDSUPPORT
305
   card.checkautostart(false);
305
   card.checkautostart(false);

+ 1
- 3
Marlin/pins.h Visa fil

247
 // #define RAMPS_V_1_3
247
 // #define RAMPS_V_1_3
248
 // #define RAMPS_V_1_0
248
 // #define RAMPS_V_1_0
249
 
249
 
250
-#ifdef MOTHERBOARD == 33 || MOTHERBOARD == 34
250
+#if MOTHERBOARD == 33 || MOTHERBOARD == 34
251
 
251
 
252
 #define X_STEP_PIN         54
252
 #define X_STEP_PIN         54
253
 #define X_DIR_PIN          55
253
 #define X_DIR_PIN          55
399
 #define PS_ON_PIN          -1
399
 #define PS_ON_PIN          -1
400
 #define KILL_PIN           -1
400
 #define KILL_PIN           -1
401
 
401
 
402
-
403
-
404
 #ifdef RAMPS_V_1_0 // RAMPS_V_1_0
402
 #ifdef RAMPS_V_1_0 // RAMPS_V_1_0
405
   #define HEATER_0_PIN     12    // RAMPS 1.0
403
   #define HEATER_0_PIN     12    // RAMPS 1.0
406
   #define HEATER_BED_PIN   -1    // RAMPS 1.0
404
   #define HEATER_BED_PIN   -1    // RAMPS 1.0

Laddar…
Avbryt
Spara