Browse Source

Fix '#'

since it can occure in comments.
bkubicek 11 years ago
parent
commit
d69822ed51
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/Marlin_main.cpp

+ 1
- 1
Marlin/Marlin_main.cpp View File

@@ -642,7 +642,7 @@ void get_command()
642 642
     serial_char = (char)n; 
643 643
     if(serial_char == '\n' ||
644 644
        serial_char == '\r' ||
645
-       serial_char == '#' ||
645
+       (serial_char == '#' && comment_mode == false) ||
646 646
        (serial_char == ':' && comment_mode == false) ||
647 647
        serial_count >= (MAX_CMD_SIZE - 1)||n==-1)
648 648
     {

Loading…
Cancel
Save