Backport meatpack feature from upstream

This commit is contained in:
Ashley Sommer
2021-08-20 13:45:16 +10:00
parent b3f4dcb2d1
commit 92bfd1b495
13 changed files with 491 additions and 111 deletions

View File

@@ -55,7 +55,7 @@ public:
* The port that the command was received on
*/
#if NUM_SERIAL > 1
static int16_t port[BUFSIZE];
static serial_index_t port[BUFSIZE];
#endif
GCodeQueue();
@@ -135,13 +135,13 @@ private:
static void _commit_command(bool say_ok
#if NUM_SERIAL > 1
, int16_t p=-1
, serial_index_t serial_ind=-1
#endif
);
static bool _enqueue(const char* cmd, bool say_ok=false
#if NUM_SERIAL > 1
, int16_t p=-1
, serial_index_t serial_ind=-1
#endif
);
@@ -154,7 +154,7 @@ private:
*/
static bool enqueue_one(const char* cmd);
static void gcode_line_error(PGM_P const err, const int8_t pn);
static void gcode_line_error(PGM_P const err, const serial_index_t serial_ind);
};