Browse Source

🩹 Init var to suppress invalid warning (#22396)

vyacheslav-shubin 3 years ago
parent
commit
e4ac55089e
No account linked to committer's email address
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      Marlin/src/gcode/bedlevel/mbl/G29.cpp

+ 2
- 1
Marlin/src/gcode/bedlevel/mbl/G29.cpp View File

@@ -70,7 +70,8 @@ void GcodeSuite::G29() {
70 70
     return;
71 71
   }
72 72
 
73
-  int8_t ix, iy = 0;
73
+  int8_t ix, iy;
74
+  ix = iy = 0;
74 75
 
75 76
   switch (state) {
76 77
     case MeshReport:

Loading…
Cancel
Save