Quellcode durchsuchen

Merge pull request #8625 from tcm0116/2.0.x-G33

[2.0.x] Fix missing return values in G33_auto_tune
Scott Lahteine vor 6 Jahren
Ursprung
Commit
046a1ad331
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
1 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 4
    4
      Marlin/src/gcode/calibrate/G33.cpp

+ 4
- 4
Marlin/src/gcode/calibrate/G33.cpp Datei anzeigen

@@ -254,7 +254,7 @@ static float probe_G33_points(float z_at_pt[NPP + 1], const int8_t probe_points,
254 254
       recalc_delta_settings();
255 255
 
256 256
       endstops.enable(true);
257
-      if (!home_delta()) return;
257
+      if (!home_delta()) return false;
258 258
       endstops.not_homing();
259 259
 
260 260
       SERIAL_PROTOCOLPGM("Tuning E");
@@ -286,7 +286,7 @@ static float probe_G33_points(float z_at_pt[NPP + 1], const int8_t probe_points,
286 286
       recalc_delta_settings();
287 287
 
288 288
       endstops.enable(true);
289
-      if (!home_delta()) return;
289
+      if (!home_delta()) return false;
290 290
       endstops.not_homing();
291 291
 
292 292
       SERIAL_PROTOCOLPGM("Tuning R");
@@ -312,7 +312,7 @@ static float probe_G33_points(float z_at_pt[NPP + 1], const int8_t probe_points,
312 312
       recalc_delta_settings();
313 313
 
314 314
       endstops.enable(true);
315
-      if (!home_delta()) return;
315
+      if (!home_delta()) return false;
316 316
       endstops.not_homing();
317 317
 
318 318
       SERIAL_PROTOCOLPGM("Tuning T");
@@ -346,7 +346,7 @@ static float probe_G33_points(float z_at_pt[NPP + 1], const int8_t probe_points,
346 346
     a_fac *= norm; // Normalize to 0.83 for Kossel mini
347 347
 
348 348
     endstops.enable(true);
349
-    if (!home_delta()) return;
349
+    if (!home_delta()) return false;
350 350
     endstops.not_homing();
351 351
     print_signed_float(PSTR( "H_FACTOR: "), h_fac);
352 352
     print_signed_float(PSTR(" R_FACTOR: "), r_fac);

Laden…
Abbrechen
Speichern