Browse Source

removed some debugging comments

Bernhard Kubicek 13 years ago
parent
commit
5df5727e93
1 changed files with 1 additions and 10 deletions
  1. 1
    10
      Marlin/Marlin.pde

+ 1
- 10
Marlin/Marlin.pde View File

392
   while( !card.eof()  && buflen < BUFSIZE) {
392
   while( !card.eof()  && buflen < BUFSIZE) {
393
     int16_t n=card.get();
393
     int16_t n=card.get();
394
     serial_char = (char)n;
394
     serial_char = (char)n;
395
-//     Serial.print((char)serial_char);
396
-//     Serial.print(" ");
397
-//     Serial.println((int)serial_count);
398
     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) 
399
     {
396
     {
400
-//       if(serial_char == '\n' || serial_char == '\r' )
401
-//         Serial.println("newline or :");
402
-//       if(serial_count >= (MAX_CMD_SIZE - 1))
403
-//         Serial.println("too long line");
404
       if(card.eof()){
397
       if(card.eof()){
405
         card.sdprinting = false;
398
         card.sdprinting = false;
406
         SERIAL_PROTOCOLLNPGM("Done printing file");
399
         SERIAL_PROTOCOLLNPGM("Done printing file");
420
          comment_mode = false; //for new command
413
          comment_mode = false; //for new command
421
       if(!serial_count)
414
       if(!serial_count)
422
       {
415
       {
423
-// 	Serial.println("empty line");
424
         return; //if empty line
416
         return; //if empty line
425
       }
417
       }
426
       cmdbuffer[bufindw][serial_count] = 0; //terminate string
418
       cmdbuffer[bufindw][serial_count] = 0; //terminate string
428
         fromsd[bufindw] = true;
420
         fromsd[bufindw] = true;
429
         buflen += 1;
421
         buflen += 1;
430
         bufindw = (bufindw + 1)%BUFSIZE;
422
         bufindw = (bufindw + 1)%BUFSIZE;
431
-      }
432
-     
423
+      }     
433
       serial_count = 0; //clear buffer
424
       serial_count = 0; //clear buffer
434
     }
425
     }
435
     else
426
     else

Loading…
Cancel
Save