|
@@ -363,8 +363,8 @@ inline void process_stream_char(const char c, uint8_t &sis, char (&buff)[MAX_CMD
|
363
|
363
|
|
364
|
364
|
inline bool process_line_done(uint8_t &sis, char (&buff)[MAX_CMD_SIZE], int &ind) {
|
365
|
365
|
sis = PS_NORMAL;
|
366
|
|
- if (!ind) { thermalManager.manage_heater(); return true; }
|
367
|
366
|
buff[ind] = 0;
|
|
367
|
+ if (!ind) { thermalManager.manage_heater(); return true; }
|
368
|
368
|
ind = 0;
|
369
|
369
|
return false;
|
370
|
370
|
}
|
|
@@ -377,7 +377,7 @@ inline bool process_line_done(uint8_t &sis, char (&buff)[MAX_CMD_SIZE], int &ind
|
377
|
377
|
void GCodeQueue::get_serial_commands() {
|
378
|
378
|
static char serial_line_buffer[NUM_SERIAL][MAX_CMD_SIZE];
|
379
|
379
|
|
380
|
|
- static uint8_t serial_input_state[NUM_SERIAL] = { 0 };
|
|
380
|
+ static uint8_t serial_input_state[NUM_SERIAL] = { PS_NORMAL };
|
381
|
381
|
|
382
|
382
|
#if ENABLED(BINARY_FILE_TRANSFER)
|
383
|
383
|
if (card.flag.binary_mode) {
|