Add HAS_MULTI_SERIAL conditional

This commit is contained in:
Scott Lahteine committed 2020-06-05 16:20:27 -05:00
1 parent f350e9d0cb
commit 6371782263
13 files changed
+37 -53

No files matched your search

+2 -4
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);