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

Loading…
Cancel
Save