vlachoudis / bCNC

GRBL CNC command sender, autoleveler and g-code editor
GNU General Public License v2.0
1.58k stars 537 forks source link

format numbers with a sensible number of digits when setting wcs #1915

Open tomjnixon opened 1 day ago

tomjnixon commented 1 day ago

This mainly affected setting the work coordinate with the mouse, which can result in numbers with lots of digits. This doesn't work with my particular controller (uCNC), but more generally always results in a very long command being shown in the UI, and is inconsistent with other code.

This does make some uses of _wcsSet look a bit odd:

I can fix these if desired. It's also unclear what the 10000mm limit is for; looks like this was introduced in this commit d8dbd633b70a1ded4f291df86d44bd527cd1c755.