Browse Source

Emergency Parser dumb terminal compatibility

Scott Lahteine 4 years ago
parent
commit
7b9eb233cb
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/feature/emergency_parser.h

+ 2
- 2
Marlin/src/feature/emergency_parser.h View File

@@ -164,11 +164,11 @@ public:
164 164
       #endif
165 165
 
166 166
       case EP_IGNORE:
167
-        if (c == '\n') state = EP_RESET;
167
+        if (c == '\n' || c == '\r') state = EP_RESET;
168 168
         break;
169 169
 
170 170
       default:
171
-        if (c == '\n') {
171
+        if (c == '\n' || c == '\r') {
172 172
           if (enabled) switch (state) {
173 173
             case EP_M108: wait_for_user = wait_for_heatup = false; break;
174 174
             case EP_M112: killed_by_M112 = true; break;

Loading…
Cancel
Save