Fix lambda missing capture (#14969)
This commit is contained in:
parent
66bfad3ced
commit
fecf808d80
@ -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…
Reference in New Issue
Block a user