Correct output of M48 (PR#2336)

n_samples is an uint8_t .
Got printouts like:
50 of 2  ...
master
AnHardt 10 years ago committed by Richard Wackerbarth
parent 47b78ed1af
commit 36746143a1

@ -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) {

Loading…
Cancel
Save