瀏覽代碼

removed some debugging comments

Bernhard Kubicek 13 年之前
父節點
當前提交
5df5727e93
共有 1 個文件被更改,包括 1 次插入10 次删除
  1. 1
    10
      Marlin/Marlin.pde

+ 1
- 10
Marlin/Marlin.pde 查看文件

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

Loading…
取消
儲存