From 9270cabb74e7672662c86f09ec81116737efc37c Mon Sep 17 00:00:00 2001 From: Denis Ignatenko <60291791+test3210-d@users.noreply.github.com> Date: Thu, 21 May 2020 20:59:09 +0300 Subject: [PATCH] hall_filament_width_sensor: fix overflow issue on 12 bit adc (#2902) Signed-off-by: Denis Ignatenko --- klippy/extras/hall_filament_width_sensor.py | 4 ++-- 1 file 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):