Tweak some lambdas
This commit is contained in:
parent
252178fe62
commit
abea6d5787
|
@ -1611,7 +1611,7 @@
|
||||||
* numbers for those locations should be 0.
|
* numbers for those locations should be 0.
|
||||||
*/
|
*/
|
||||||
#ifdef VALIDATE_MESH_TILT
|
#ifdef VALIDATE_MESH_TILT
|
||||||
auto d_from = []() { DEBUG_ECHOPGM("D from "); };
|
auto d_from = []{ DEBUG_ECHOPGM("D from "); };
|
||||||
auto normed = [&](const xy_pos_t &pos, const float &zadd) {
|
auto normed = [&](const xy_pos_t &pos, const float &zadd) {
|
||||||
return normal.x * pos.x + normal.y * pos.y + zadd;
|
return normal.x * pos.x + normal.y * pos.y + zadd;
|
||||||
};
|
};
|
||||||
|
|
|
@ -103,7 +103,7 @@ void _man_probe_pt(const xy_pos_t &xy) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void lcd_delta_settings() {
|
void lcd_delta_settings() {
|
||||||
auto _recalc_delta_settings = []() {
|
auto _recalc_delta_settings = []{
|
||||||
#if HAS_LEVELING
|
#if HAS_LEVELING
|
||||||
reset_bed_level(); // After changing kinematics bed-level data is no longer valid
|
reset_bed_level(); // After changing kinematics bed-level data is no longer valid
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -227,7 +227,7 @@ millis_t MarlinUI::next_button_update_ms; // = 0
|
||||||
SETCURSOR(col, row);
|
SETCURSOR(col, row);
|
||||||
if (!string) return;
|
if (!string) return;
|
||||||
|
|
||||||
auto _newline = [&col, &row]() {
|
auto _newline = [&col, &row]{
|
||||||
col = 0; row++; // Move col to string len (plus space)
|
col = 0; row++; // Move col to string len (plus space)
|
||||||
SETCURSOR(0, row); // Simulate carriage return
|
SETCURSOR(0, row); // Simulate carriage return
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue