Explorar el Código

Emergency Parser dumb terminal compatibility

Scott Lahteine hace 4 años
padre
commit
7b9eb233cb
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      Marlin/src/feature/emergency_parser.h

+ 2
- 2
Marlin/src/feature/emergency_parser.h Ver fichero

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

Loading…
Cancelar
Guardar