Add HAS_MULTI_SERIAL conditional

This commit is contained in:
Scott Lahteine
2020-05-12 05:50:28 -05:00
parent f350e9d0cb
commit 6371782263
13 changed files with 37 additions and 53 deletions

View File

@ -27,7 +27,7 @@
#include "../gcode.h"
#include "../../sd/cardreader.h"
#if NUM_SERIAL > 1
#if HAS_MULTI_SERIAL
#include "../queue.h"
#endif
@ -49,9 +49,7 @@ void GcodeSuite::M28() {
// Binary transfer mode
if ((card.flag.binary_mode = binary_mode)) {
SERIAL_ECHO_MSG("Switching to Binary Protocol");
#if NUM_SERIAL > 1
card.transfer_port_index = queue.port[queue.index_r];
#endif
TERN_(HAS_MULTI_SERIAL, card.transfer_port_index = queue.port[queue.index_r]);
}
else
card.openFileWrite(p);