浏览代码

Merge pull request #7977 from thinkyhead/bf1_fix_emergency_parser

[1.1.x] Fix Emergency Parser
Scott Lahteine 6 年前
父节点
当前提交
0976d22225
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      Marlin/MarlinSerial.cpp

+ 2
- 2
Marlin/MarlinSerial.cpp 查看文件

@@ -175,12 +175,12 @@
175 175
     // If the character is to be stored at the index just before the tail
176 176
     // (such that the head would advance to the current tail), the buffer is
177 177
     // critical, so don't write the character or advance the head.
178
+    const char c = M_UDRx;
178 179
     if (i != rx_buffer.tail) {
179
-      rx_buffer.buffer[h] = M_UDRx;
180
+      rx_buffer.buffer[h] = c;
180 181
       rx_buffer.head = i;
181 182
     }
182 183
     else {
183
-      (void)M_UDRx;
184 184
       #if ENABLED(SERIAL_STATS_DROPPED_RX)
185 185
         if (!++rx_dropped_bytes) ++rx_dropped_bytes;
186 186
       #endif

正在加载...
取消
保存