From 7216a128566c173ebd2d799498bf53af182e9acf Mon Sep 17 00:00:00 2001 From: Erik van der Zalm Date: Mon, 28 Nov 2011 21:17:06 +0100 Subject: [PATCH] Disabled M88 for boards that don't have seperate enable pins. --- Marlin/Marlin.pde | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/Marlin/Marlin.pde b/Marlin/Marlin.pde index a803ba375..191f70b64 100644 --- a/Marlin/Marlin.pde +++ b/Marlin/Marlin.pde @@ -867,14 +867,19 @@ inline void process_commands() } break; case 88: //M88 - if(code_seen('S')) { - stepper_inactive_time = code_value() * 1000; - } - else { - st_synchronize() - LCD_MESSAGEPGM("Free Move"); - disable_e(); - } + #if ((E_ENABLE_PIN != X_ENABLE_PIN) && (E_ENABLE_PIN != Y_ENABLE_PIN)) // Only enable on boards that have seperate ENABLE_PINS + if(code_seen('S')) { + stepper_inactive_time = code_value() * 1000; + } + else { + st_synchronize() + LCD_MESSAGEPGM("Free Move"); + disable_e(); + } + #else + SERIAL_ECHO_START; + SERIAL_ECHOLN("M88 not supported"); + #endif break; case 115: // M115 SerialprintPGM("FIRMWARE_NAME:Marlin; Sprinter/grbl mashup for gen6 FIRMWARE_URL:http://www.mendel-parts.com PROTOCOL_VERSION:1.0 MACHINE_TYPE:Mendel EXTRUDER_COUNT:1");