Browse Source

Tweak some lambdas

Scott Lahteine 5 years ago
parent
commit
abea6d5787

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

1611
          * numbers for those locations should be 0.
1611
          * numbers for those locations should be 0.
1612
          */
1612
          */
1613
         #ifdef VALIDATE_MESH_TILT
1613
         #ifdef VALIDATE_MESH_TILT
1614
-          auto d_from = []() { DEBUG_ECHOPGM("D from "); };
1614
+          auto d_from = []{ DEBUG_ECHOPGM("D from "); };
1615
           auto normed = [&](const xy_pos_t &pos, const float &zadd) {
1615
           auto normed = [&](const xy_pos_t &pos, const float &zadd) {
1616
             return normal.x * pos.x + normal.y * pos.y + zadd;
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
  */
42
  */
43
 void GcodeSuite::M900() {
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
     SERIAL_CHAR('?'); SERIAL_CHAR(ltr);
46
     SERIAL_CHAR('?'); SERIAL_CHAR(ltr);
47
     SERIAL_ECHOPGM(" value out of range");
47
     SERIAL_ECHOPGM(" value out of range");
48
     if (ten) SERIAL_ECHOPGM(" (0-10)");
48
     if (ten) SERIAL_ECHOPGM(" (0-10)");

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

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

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

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

Loading…
Cancel
Save