3a0b834f3a8929208d4ea6116f206a55fbc186ee
Keeps the width sensor state in sync with the associated runout sensor and normalizes the output when the width sensor is disabled. When the width sensor was disabled the associated filament sensor remained enabled but was no longer updated so would be 'stuck' in the last state it was in before the width sensor was disabled. The toggle switch and readings in the web interface could also be out of sync with the actual sensor and filament states, misleading the user. Now, when the width sensor is disabled: - The filament sensor is disabled - The reported filament state is 'present' - The reported filament diameter is the nominal diameter When the width sensor is enabled: - The filament sensor is enabled - The reported filament state is the derived state - The reported filament diameter is the measured value Finally, `min_diameter` is now used to determine the runout state rather than a fixed value of `0.5`. Signed-off-by: Ben Lye ben@lye.co.nz
Welcome to the Klipper project!
The Klipper firmware controls 3d-Printers. It combines the power of a general purpose computer with one or more micro-controllers. See the features document for more information on why you should use the Klipper software.
Start by installing Klipper software.
Klipper software is Free Software. See the license or read the documentation. We depend on the generous support from our sponsors.
Languages
C
95%
Python
3.1%
Jupyter Notebook
1.5%
C++
0.2%
