jlas1 / Klicky-Probe

Microswitch probe with magnetic attachement, primarily aimed at CoreXY 3d printers
GNU General Public License v3.0
1.23k stars 279 forks source link

Not taking decimal value on dock location 5.8 = 5.0 #203

Open PhilBaz opened 1 year ago

PhilBaz commented 1 year ago

If I enter X = 5.8 for the dock position, it just moves to X = 5.0, 6.3 I just get 6.0 on the move.

Some how I'm losing a decimal on the coordinate ?

timmit99 commented 1 year ago

image

Looking at the macros.cfg it looks like it casts al probe locations as "integers" so all decimals are lost. https://github.com/jlas1/Klicky-Probe/blob/765ad4eb885f6e93b530d88aa2ab8d7765d6f33f/Klipper_macros/klicky-macros.cfg#L260-L268