bed_mesh: Allow the default profile to be removed

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2019-12-17 10:39:16 -05:00 committed by KevinOConnor
parent 2c877e1729
commit 13d16afa0c
1 changed files with 1 additions and 1 deletions

View File

@ -434,7 +434,7 @@ class BedMeshCalibrate:
for key in options: for key in options:
name = self.gcode.get_str(key, params, None) name = self.gcode.get_str(key, params, None)
if name is not None: if name is not None:
if name == "default" and key != 'LOAD': if name == "default" and key == 'SAVE':
self.gcode.respond_info( self.gcode.respond_info(
"Profile 'default' is reserved, please chose" "Profile 'default' is reserved, please chose"
" another profile name.") " another profile name.")