Browse Source

Fix variable conflict in ok_to_send (#14351)

LinFor 6 years ago
parent
commit
0f6f5132c1
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/src/gcode/queue.cpp

+ 3
- 3
Marlin/src/gcode/queue.cpp View File

@@ -225,9 +225,9 @@ void GCodeQueue::enqueue_now_P(PGM_P const pgcode) {
225 225
  */
226 226
 void GCodeQueue::ok_to_send() {
227 227
   #if NUM_SERIAL > 1
228
-    const int16_t p = port[index_r];
229
-    if (p < 0) return;
230
-    PORT_REDIRECT(p);
228
+    const int16_t pn = port[index_r];
229
+    if (pn < 0) return;
230
+    PORT_REDIRECT(pn);
231 231
   #endif
232 232
   if (!send_ok[index_r]) return;
233 233
   SERIAL_ECHOPGM(MSG_OK);

Loading…
Cancel
Save