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

@@ -55,16 +55,12 @@ public:
/**
* The port that the command was received on
*/
#if NUM_SERIAL > 1
#if HAS_MULTI_SERIAL
static int16_t port[BUFSIZE];
#endif
static int16_t command_port() {
return (0
#if NUM_SERIAL > 1
+ port[index_r]
#endif
);
return TERN0(HAS_MULTI_SERIAL, port[index_r]);
}
GCodeQueue();
@@ -162,13 +158,13 @@ private:
#endif
static void _commit_command(bool say_ok
#if NUM_SERIAL > 1
#if HAS_MULTI_SERIAL
, int16_t p=-1
#endif
);
static bool _enqueue(const char* cmd, bool say_ok=false
#if NUM_SERIAL > 1
#if HAS_MULTI_SERIAL
, int16_t p=-1
#endif
);