Selaa lähdekoodia

Multiply by float, not double

Scott Lahteine 5 vuotta sitten
vanhempi
commit
f307ff68f7
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      Marlin/src/gcode/calibrate/M48.cpp

+ 1
- 1
Marlin/src/gcode/calibrate/M48.cpp Näytä tiedosto

@@ -176,7 +176,7 @@ void GcodeSuite::M48() {
176 176
             // If we have gone out too far, we can do a simple fix and scale the numbers
177 177
             // back in closer to the origin.
178 178
             while (!position_is_reachable_by_probe(next_pos)) {
179
-              next_pos *= 0.8;
179
+              next_pos *= 0.8f;
180 180
               if (verbose_level > 3)
181 181
                 SERIAL_ECHOLNPAIR("Moving inward: X", next_pos.x, " Y", next_pos.y);
182 182
             }

Loading…
Peruuta
Tallenna