Browse Source

Fix lambda missing capture (#14969)

pull/1/head
J.C. Nelson 5 years ago
committed by Scott Lahteine
parent
commit
fecf808d80
  1. 2
      Marlin/src/lcd/extui_malyan_lcd.cpp

2
Marlin/src/lcd/extui_malyan_lcd.cpp

@ -183,7 +183,7 @@ void process_lcd_eb_command(const char* command) {
* X, Y, Z, A (extruder) * X, Y, Z, A (extruder)
*/ */
void process_lcd_j_command(const char* command) { void process_lcd_j_command(const char* command) {
auto move_axis = [](const auto axis) { auto move_axis = [command](const auto axis) {
const float dist = atof(command + 1) / 10.0; const float dist = atof(command + 1) / 10.0;
ExtUI::setAxisPosition_mm(ExtUI::getAxisPosition_mm(axis) + dist, axis); ExtUI::setAxisPosition_mm(ExtUI::getAxisPosition_mm(axis) + dist, axis);
} }

Loading…
Cancel
Save