Fix lambda missing capture (#14969)

This commit is contained in:
J.C. Nelson 2019-08-16 19:15:27 -07:00 committed by Scott Lahteine
parent 66bfad3ced
commit fecf808d80

View File

@ -183,7 +183,7 @@ void process_lcd_eb_command(const char* command) {
* X, Y, Z, A (extruder)
*/
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;
ExtUI::setAxisPosition_mm(ExtUI::getAxisPosition_mm(axis) + dist, axis);
}