Minor string storage optimization

This commit is contained in:
Scott Lahteine
2020-02-01 17:05:42 -06:00
parent 4937519d51
commit 0e72c315a0
9 changed files with 18 additions and 16 deletions

View File

@ -254,8 +254,8 @@ void GCodeQueue::ok_to_send() {
while (NUMERIC_SIGNED(*p))
SERIAL_ECHO(*p++);
}
SERIAL_ECHOPGM(" P"); SERIAL_ECHO(int(BLOCK_BUFFER_SIZE - planner.movesplanned() - 1));
SERIAL_ECHOPGM(" B"); SERIAL_ECHO(BUFSIZE - length);
SERIAL_ECHOPAIR_P(SP_P_STR, int(BLOCK_BUFFER_SIZE - planner.movesplanned() - 1));
SERIAL_ECHOPAIR(" B", BUFSIZE - length);
#endif
SERIAL_EOL();
}