Browse Source

Correct output of M48 (PR#2336)

n_samples is an uint8_t .
Got printouts like:
50 of 2  ...
pull/1/head
AnHardt 9 years ago
committed by Richard Wackerbarth
parent
commit
36746143a1
  1. 2
      Marlin/Marlin_main.cpp

2
Marlin/Marlin_main.cpp

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