From ed951b197728d7ec368098877d0f9599523b5a8e Mon Sep 17 00:00:00 2001 From: Erik van der Zalm Date: Sat, 3 Mar 2012 20:15:41 +0100 Subject: [PATCH] Fixed RAMPS 1.2 support (Found and fixed by rrhb) --- Marlin/Marlin.pde | 2 +- Marlin/pins.h | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Marlin/Marlin.pde b/Marlin/Marlin.pde index f417ae5b8c..89bf9400a3 100644 --- a/Marlin/Marlin.pde +++ b/Marlin/Marlin.pde @@ -299,7 +299,7 @@ void setup() void loop() { - if(buflen<3) + if(buflen < (BUFSIZE-1)) get_command(); #ifdef SDSUPPORT card.checkautostart(false); diff --git a/Marlin/pins.h b/Marlin/pins.h index fb809ce583..10847519cf 100644 --- a/Marlin/pins.h +++ b/Marlin/pins.h @@ -247,7 +247,7 @@ // #define RAMPS_V_1_3 // #define RAMPS_V_1_0 -#ifdef MOTHERBOARD == 33 || MOTHERBOARD == 34 +#if MOTHERBOARD == 33 || MOTHERBOARD == 34 #define X_STEP_PIN 54 #define X_DIR_PIN 55 @@ -399,8 +399,6 @@ #define PS_ON_PIN -1 #define KILL_PIN -1 - - #ifdef RAMPS_V_1_0 // RAMPS_V_1_0 #define HEATER_0_PIN 12 // RAMPS 1.0 #define HEATER_BED_PIN -1 // RAMPS 1.0