Skip to content

Commit

Permalink
Merge pull request MarlinFirmware#7977 from thinkyhead/bf1_fix_emerge…
Browse files Browse the repository at this point in the history
…ncy_parser

[1.1.x] Fix Emergency Parser
  • Loading branch information
thinkyhead authored Oct 14, 2017
2 parents 1c3d068 + e17869c commit 0976d22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/MarlinSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@
// If the character is to be stored at the index just before the tail
// (such that the head would advance to the current tail), the buffer is
// critical, so don't write the character or advance the head.
const char c = M_UDRx;
if (i != rx_buffer.tail) {
rx_buffer.buffer[h] = M_UDRx;
rx_buffer.buffer[h] = c;
rx_buffer.head = i;
}
else {
(void)M_UDRx;
#if ENABLED(SERIAL_STATS_DROPPED_RX)
if (!++rx_dropped_bytes) ++rx_dropped_bytes;
#endif
Expand Down

0 comments on commit 0976d22

Please sign in to comment.