Browse Source

Fix lambda missing capture (#14969)

J.C. Nelson 6 years ago
parent
commit
fecf808d80
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/lcd/extui_malyan_lcd.cpp

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

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

Loading…
Cancel
Save