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

Loading…
Cancel
Save