aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/tsl1401cl_filament_width_sensor.py
Commit message (Collapse)AuthorAgeFilesLines
* tsl1401cl_filament_width_sensor: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-8/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Rename respond() to respond_raw()Kevin O'Connor2020-04-241-4/+4
| | | | | | | | | | | Rename the method to make it more clear that it is a low-level call that should be rarely used. Also, change gcode_button.py, hall_filament_width_sensor.py, and tsl1401cl_filament_width_sensor.py to use respond_info() instead of respond_raw(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tsl1401cl_filament_width_sensor: Fix incorrect math in filament width ↵Len Trigg2019-04-151-2/+2
| | | | | | | | | | | sensor. (#1541) The parameter to the M221 command should be the ratio of the nominal to measured filament area, rather than the ratio of the diameters. Since we are taking the ratio, most of the area calculation cancels out. Fixes #1535. Signed-off-by: Len Trigg <lenbok@gmail.com>
* tsl1401cl_filament_width_sensor: Wrap code to 80 columnsKevin O'Connor2019-02-271-17/+34
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Raise a config error on invalid register_command()Kevin O'Connor2019-02-181-6/+7
| | | | | | | Raise a printer.config_error() on an invalid register_command() call. This error is easier to handle for the vast majority of callers. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tsl1401cl_filament_width_sensor: Filament Width Sensor Support (#1132)nopbit2019-02-141-0/+130
Support added for filament diameter sensor. Sample configuration parameters added to example-extras.cfg. Signed-off-by: Mustafa YILDIZ <mydiz@hotmail.com>