Correct output of M48 (PR#2336)

n_samples is an uint8_t .
Got printouts like:
50 of 2  ...
This commit is contained in:
AnHardt 2015-06-26 22:16:08 +02:00 committed by Richard Wackerbarth
parent 47b78ed1af
commit 36746143a1

View File

@ -3362,7 +3362,7 @@ inline void gcode_M42() {
if (verbose_level > 1) {
SERIAL_PROTOCOL(n+1);
SERIAL_PROTOCOLPGM(" of ");
SERIAL_PROTOCOL(n_samples);
SERIAL_PROTOCOL((int)n_samples);
SERIAL_PROTOCOLPGM(" z: ");
SERIAL_PROTOCOL_F(current_position[Z_AXIS], 6);
if (verbose_level > 2) {