|
@@ -378,12 +378,12 @@ void parse_lcd_byte(const byte b) {
|
378
|
378
|
|| (!is_lcd && c == '\n') // LF on a G-code command
|
379
|
379
|
) {
|
380
|
380
|
inbound_buffer[inbound_count] = '\0'; // Reset before processing
|
381
|
|
- parsing = 0; // Unflag and...
|
382
|
381
|
inbound_count = 0; // Reset buffer index
|
383
|
382
|
if (parsing == 1)
|
384
|
383
|
process_lcd_command(inbound_buffer); // Handle the LCD command
|
385
|
384
|
else
|
386
|
385
|
queue.enqueue_one_now(inbound_buffer); // Handle the G-code command
|
|
386
|
+ parsing = 0; // Unflag and...
|
387
|
387
|
}
|
388
|
388
|
else if (inbound_count < MAX_CURLY_COMMAND - 2)
|
389
|
389
|
inbound_buffer[inbound_count++] = is_lcd ? c : b; // Buffer while space remains
|