bltouch: Ensure the z_offset is not negative

It would not make sense to have a negative z_offset.  Reported by
@Yoyolick.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-06-22 15:27:30 -04:00
parent c2907c998c
commit 6c8d1ddaec
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class BLTouchEndstopWrapper:
self.handle_connect)
self.printer.register_event_handler('klippy:mcu_identify',
self.handle_mcu_identify)
self.position_endstop = config.getfloat('z_offset')
self.position_endstop = config.getfloat('z_offset', minval=0.)
self.stow_on_each_sample = config.getboolean('stow_on_each_sample',
True)
self.probe_touch_mode = config.getboolean('probe_with_touch_mode',