Browse Source

possible stepper release after sd printing

Bernhard 13 years ago
parent
commit
8cb29921a0
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      Marlin/Marlin.pde

+ 3
- 2
Marlin/Marlin.pde View File

@@ -395,7 +395,6 @@ inline void get_command()
395 395
     if(serial_char == '\n' || serial_char == '\r' || serial_char == ':' || serial_count >= (MAX_CMD_SIZE - 1)||n==-1) 
396 396
     {
397 397
       if(card.eof()){
398
-        card.sdprinting = false;
399 398
         SERIAL_PROTOCOLLNPGM("Done printing file");
400 399
         stoptime=millis();
401 400
         char time[30];
@@ -407,7 +406,9 @@ inline void get_command()
407 406
         SERIAL_ECHO_START;
408 407
         SERIAL_ECHOLN(time);
409 408
         LCD_MESSAGE(time);
409
+        card.printingHasFinished();
410 410
         card.checkautostart(true);
411
+        
411 412
       }
412 413
       if(serial_char=='\n')
413 414
          comment_mode = false; //for new command
@@ -860,7 +861,7 @@ inline void process_commands()
860 861
       { 
861 862
         #if ((E_ENABLE_PIN != X_ENABLE_PIN) && (E_ENABLE_PIN != Y_ENABLE_PIN)) // Only enable on boards that have seperate ENABLE_PINS
862 863
         if(code_seen('E')) {
863
-          st_synchronize()
864
+          st_synchronize();
864 865
           LCD_MESSAGEPGM("Free Move");
865 866
           disable_e();
866 867
         }

Loading…
Cancel
Save