Browse Source

Correct output of M48 (PR#2336)

n_samples is an uint8_t .
Got printouts like:
50 of 2  ...
AnHardt 9 years ago
parent
commit
36746143a1
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/Marlin_main.cpp

+ 1
- 1
Marlin/Marlin_main.cpp View File

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

Loading…
Cancel
Save