mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 13:56:24 +00:00
Fix variable conflict in ok_to_send (#14351)
This commit is contained in:
parent
c41b005f33
commit
0f6f5132c1
@ -225,9 +225,9 @@ void GCodeQueue::enqueue_now_P(PGM_P const pgcode) {
|
||||
*/
|
||||
void GCodeQueue::ok_to_send() {
|
||||
#if NUM_SERIAL > 1
|
||||
const int16_t p = port[index_r];
|
||||
if (p < 0) return;
|
||||
PORT_REDIRECT(p);
|
||||
const int16_t pn = port[index_r];
|
||||
if (pn < 0) return;
|
||||
PORT_REDIRECT(pn);
|
||||
#endif
|
||||
if (!send_ok[index_r]) return;
|
||||
SERIAL_ECHOPGM(MSG_OK);
|
||||
|
Loading…
Reference in New Issue
Block a user