Browse Source

Tweak some lambdas

Scott Lahteine 4 years ago
parent
commit
abea6d5787

+ 1
- 1
Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp View File

@@ -1611,7 +1611,7 @@
1611 1611
          * numbers for those locations should be 0.
1612 1612
          */
1613 1613
         #ifdef VALIDATE_MESH_TILT
1614
-          auto d_from = []() { DEBUG_ECHOPGM("D from "); };
1614
+          auto d_from = []{ DEBUG_ECHOPGM("D from "); };
1615 1615
           auto normed = [&](const xy_pos_t &pos, const float &zadd) {
1616 1616
             return normal.x * pos.x + normal.y * pos.y + zadd;
1617 1617
           };

+ 1
- 1
Marlin/src/gcode/feature/advance/M900.cpp View File

@@ -42,7 +42,7 @@
42 42
  */
43 43
 void GcodeSuite::M900() {
44 44
 
45
-  auto echo_value_oor = [] (const char ltr, const bool ten=true) {
45
+  auto echo_value_oor = [](const char ltr, const bool ten=true) {
46 46
     SERIAL_CHAR('?'); SERIAL_CHAR(ltr);
47 47
     SERIAL_ECHOPGM(" value out of range");
48 48
     if (ten) SERIAL_ECHOPGM(" (0-10)");

+ 1
- 1
Marlin/src/lcd/menu/menu_delta_calibrate.cpp View File

@@ -103,7 +103,7 @@ void _man_probe_pt(const xy_pos_t &xy) {
103 103
 #endif
104 104
 
105 105
 void lcd_delta_settings() {
106
-  auto _recalc_delta_settings = []() {
106
+  auto _recalc_delta_settings = []{
107 107
     #if HAS_LEVELING
108 108
       reset_bed_level(); // After changing kinematics bed-level data is no longer valid
109 109
     #endif

+ 1
- 1
Marlin/src/lcd/ultralcd.cpp View File

@@ -227,7 +227,7 @@ millis_t MarlinUI::next_button_update_ms; // = 0
227 227
     SETCURSOR(col, row);
228 228
     if (!string) return;
229 229
 
230
-    auto _newline = [&col, &row]() {
230
+    auto _newline = [&col, &row]{
231 231
       col = 0; row++;                 // Move col to string len (plus space)
232 232
       SETCURSOR(0, row);              // Simulate carriage return
233 233
     };

Loading…
Cancel
Save