Giuliano Zaro пре 5 година
родитељ
комит
0e17d10bf3
No account linked to committer's email address
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2
    2
      Marlin/src/gcode/queue.cpp

+ 2
- 2
Marlin/src/gcode/queue.cpp Прегледај датотеку

363
 
363
 
364
 inline bool process_line_done(uint8_t &sis, char (&buff)[MAX_CMD_SIZE], int &ind) {
364
 inline bool process_line_done(uint8_t &sis, char (&buff)[MAX_CMD_SIZE], int &ind) {
365
   sis = PS_NORMAL;
365
   sis = PS_NORMAL;
366
-  if (!ind) { thermalManager.manage_heater(); return true; }
367
   buff[ind] = 0;
366
   buff[ind] = 0;
367
+  if (!ind) { thermalManager.manage_heater(); return true; }
368
   ind = 0;
368
   ind = 0;
369
   return false;
369
   return false;
370
 }
370
 }
377
 void GCodeQueue::get_serial_commands() {
377
 void GCodeQueue::get_serial_commands() {
378
   static char serial_line_buffer[NUM_SERIAL][MAX_CMD_SIZE];
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
   #if ENABLED(BINARY_FILE_TRANSFER)
382
   #if ENABLED(BINARY_FILE_TRANSFER)
383
     if (card.flag.binary_mode) {
383
     if (card.flag.binary_mode) {

Loading…
Откажи
Сачувај