iFallUpHill / flow-calculator

45 stars 12 forks source link

Degree Symbol Causes Unhandled Exception in Klipper #32

Open second-pair opened 6 months ago

second-pair commented 6 months ago

Some of comments generated by this tool include the degree symbol (°), presumably generated by src/utils/generateGcode.js. On my machine (RatRig V-Core 3 running Klipper V0.12.0-34-ge37b007f), this causes Klipper to throw an Unhandled Exception and cancel the print.

Stripping the symbol with the following command, re-uploading and re-printing the gcode results in a successful print:

sed -i 's/°//g' flow.gcode

If possible, it would be good to have a toggle in the web interface to prevent these (and other special characters) being included, particularly for those who aren't CLI-savvy.