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:
parent
1d2746f167
commit
9270cabb74
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue