aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/hall_filament_width_sensor.py
diff options
context:
space:
mode:
authorDenis Ignatenko <60291791+test3210-d@users.noreply.github.com>2020-05-21 20:59:09 +0300
committerGitHub <noreply@github.com>2020-05-21 13:59:09 -0400
commit9270cabb74e7672662c86f09ec81116737efc37c (patch)
tree60bb006365b2807a14116e929738e5a304f74dc7 /klippy/extras/hall_filament_width_sensor.py
parent1d2746f1671bdb6a25c455a15267ccdee73c47d0 (diff)
downloadkutter-9270cabb74e7672662c86f09ec81116737efc37c.tar.gz
kutter-9270cabb74e7672662c86f09ec81116737efc37c.tar.xz
kutter-9270cabb74e7672662c86f09ec81116737efc37c.zip
hall_filament_width_sensor: fix overflow issue on 12 bit adc (#2902)
Signed-off-by: Denis Ignatenko <deniss979@gmail.com>
Diffstat (limited to 'klippy/extras/hall_filament_width_sensor.py')
-rw-r--r--klippy/extras/hall_filament_width_sensor.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/extras/hall_filament_width_sensor.py b/klippy/extras/hall_filament_width_sensor.py
index f7ae7980..d93d9e2e 100644
--- a/klippy/extras/hall_filament_width_sensor.py
+++ b/klippy/extras/hall_filament_width_sensor.py
@@ -6,8 +6,8 @@
import filament_switch_sensor
ADC_REPORT_TIME = 0.500
-ADC_SAMPLE_TIME = 0.01
-ADC_SAMPLE_COUNT = 49
+ADC_SAMPLE_TIME = 0.03
+ADC_SAMPLE_COUNT = 15
class HallFilamentWidthSensor:
def __init__(self, config):