hall_filament_width_sensor: fix overflow issue on 12 bit adc (#2902)

Signed-off-by: Denis Ignatenko <deniss979@gmail.com>
This commit is contained in:
Denis Ignatenko 2020-05-21 20:59:09 +03:00 committed by GitHub
parent 1d2746f167
commit 9270cabb74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -6,8 +6,8 @@
import filament_switch_sensor import filament_switch_sensor
ADC_REPORT_TIME = 0.500 ADC_REPORT_TIME = 0.500
ADC_SAMPLE_TIME = 0.01 ADC_SAMPLE_TIME = 0.03
ADC_SAMPLE_COUNT = 49 ADC_SAMPLE_COUNT = 15
class HallFilamentWidthSensor: class HallFilamentWidthSensor:
def __init__(self, config): def __init__(self, config):