Frix-x / klippain

Generic Klipper configuration for 3D printers
GNU General Public License v3.0
831 stars 219 forks source link

Sensorless homing problem #137

Closed kurtblah closed 1 year ago

kurtblah commented 1 year ago

I get this error msg in the console upon start-up: Error evaluating 'homing_override:gcode': jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'sensorless_current_factor'

This happened after moving to klippain from your earlier version. Not sure where to look, the klippy log looks normal to me.

My machine is stock 2.4, with TAP and Stealthburner. normal endstops installed.

Frix-x commented 1 year ago

Hi,

Thanks for opening this issue! Yes this is due to a new variable added in the last version: sensorless_current_factor

You need to add it in your variables.cfg file and everything will be alright (see the variables.cfg templates for the definition and default value)

kurtblah commented 1 year ago

thanks, that solved it.

W141-ID commented 1 year ago

adding to that seems like the sensorless homing variables need to be floats. I use sensorless homing on my machine and had to change those to floats in the overrides

Frix-x commented 1 year ago

adding to that seems like the sensorless homing variables need to be floats. I use sensorless homing on my machine and had to change those to floats in the overrides

This is good to know! I'm not using sensorless on my side and I tested it as far as I could when writing support for it. I'll change that in the next release :)

Tom-T commented 1 year ago

I sent a patch for this as I had the same issue. :) I just winged it as I don't really know the language that well.