Make MBL a static class, use lookup for index-to-point conversion

This commit is contained in:
Scott Lahteine
2017-03-31 01:28:07 -05:00
parent de9d2cddc3
commit c9eb1d6ab7
4 changed files with 52 additions and 47 deletions

View File

@ -1437,7 +1437,7 @@ KeepDrawing:
// _manual_probe_xy runs the menu loop until the move is done
int8_t px, py;
mbl.zigzag(manual_probe_index, px, py);
_manual_probe_xy(mbl.get_probe_x(px), mbl.get_probe_y(py));
_manual_probe_xy(mbl.index_to_xpos[px], mbl.index_to_ypos[py]);
// After the blocking function returns, change menus
lcd_goto_screen(_lcd_level_bed_get_z);