Closed spaivaras closed 5 months ago
It seems its caused by https://github.com/markniu/Bed_Distance_sensor/commit/0c46ce3855cc7bcb08c8fa0f8e74d6ba6a4f0823#diff-bb1ddc1d5ca5bce2021872251f827078db83dc95b2b31a0df31cb7d7bdede2ffL355
removing return statement from def run_probe
but def cmd_PROBE_CALIBRATE(self, gcmd)
needs the return value:
curpos = self.run_probe(gcmd)
I definitely have little knowledge with python, even less with klipper code base, for myself i did a quick hack of adding
return epos
at the end of run_probe
function
I see that probe results should be handled differently from probe.results? maybe or maybe gcmd should have set SAMPLES_RESULT == median as run_probe have logic for returning a position? But lacking knowledge here to prepare a merge request
Thanks! this bug comes from the sync code with the klipper recently. you can updated the BDsensor.py and try again.
Sorry for the late reply, yep seems probe_calibrate works without issue now, thx for the fix
After recent updates (dont remember which commit was originally, but it was the one that did mech leveling check continues) Cant issue probe_calibrate anymore. No settings or height was changed
klippy.log
Console output:
Version info: