Selaa lähdekoodia

Fix G33 compile warning

Scott Lahteine 7 vuotta sitten
vanhempi
commit
a431013eb7
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      Marlin/src/gcode/calibrate/G33.cpp

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

247
     }
247
     }
248
 
248
 
249
     if (_7p_calibration) { // probe extra center points
249
     if (_7p_calibration) { // probe extra center points
250
-      const float start  = _7p_9_center ? _CA + _7P_STEP / 3.0 : _7p_6_center ? _CA : __C,
250
+      const float start  = _7p_9_center ? float(_CA) + _7P_STEP / 3.0 : _7p_6_center ? float(_CA) : float(__C),
251
                   steps  = _7p_9_center ? _4P_STEP / 3.0 : _7p_6_center ? _7P_STEP : _4P_STEP;
251
                   steps  = _7p_9_center ? _4P_STEP / 3.0 : _7p_6_center ? _7P_STEP : _4P_STEP;
252
       I_LOOP_CAL_PT(rad, start, steps) {
252
       I_LOOP_CAL_PT(rad, start, steps) {
253
         const float a = RADIANS(210 + (360 / NPP) *  (rad - 1)),
253
         const float a = RADIANS(210 + (360 / NPP) *  (rad - 1)),

Loading…
Peruuta
Tallenna