Fix ExtUI compile warnings and error (#12799)

This commit is contained in:
Marcio Teixeira
2019-01-03 07:36:43 -07:00
committed by Scott Lahteine
parent 74c47803f7
commit 81e753064a
3 changed files with 6 additions and 4 deletions

View File

@ -215,7 +215,9 @@ void GcodeSuite::M420() {
// Enable leveling if specified, or if previously active
set_bed_leveling_enabled(to_enable);
EXIT_M420:
#if HAS_MESH
EXIT_M420:
#endif
// Error if leveling failed to enable or reenable
if (to_enable && !planner.leveling_active)