mmone / OctoprintKlipperPlugin

A plugin for a better integration of Klipper into OctoPrint.
GNU General Public License v3.0
84 stars 61 forks source link

Blank Config Created With High Precision Floating Point Value #45

Open mental405 opened 5 years ago

mental405 commented 5 years ago

I installed a BMG extruder and was calibrating step distance. Since this is a geared extruder it has a reduction which makes the step distance extremely small. Successive math on the value further increases the number of digits after the decimal point. After some arbitrary length it craps out and creates a blank config file. I am aware after a certain point the precision is actually trivial but when you are just copying and pasting a value out of a calculator you aren't really concerned with such things.

Steps to reproduce: 1: Put a really long float value into the config for any numeric value. 2: Save 3: Cry because the plugin does not backup the previous config before saving and you have to hope you backed yours up recently.

I am not sure if this is a python thing or a javascript thing.

mental405 commented 4 years ago

Is this being looked into?