aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/hall_filament_width_sensor.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2024-06-18 13:01:34 -0400
committerKevin O'Connor <kevin@koconnor.net>2024-06-21 15:32:30 -0400
commitd89722056bf58103dc7fc06bc310ac39afa6aaa0 (patch)
tree7a758d84365dce6ad210a0263d0ad702d9901c20 /klippy/extras/hall_filament_width_sensor.py
parent9fa0fb1a0ebca3ed4be887417b255b26fc99bbfd (diff)
downloadkutter-d89722056bf58103dc7fc06bc310ac39afa6aaa0.tar.gz
kutter-d89722056bf58103dc7fc06bc310ac39afa6aaa0.tar.xz
kutter-d89722056bf58103dc7fc06bc310ac39afa6aaa0.zip
mcu: Rename setup_minmax() to setup_adc_sample()
Rename this method so that it is more distinct from the the common temperature setup_minmax() method. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
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 e0802887..8dab3522 100644
--- a/klippy/extras/hall_filament_width_sensor.py
+++ b/klippy/extras/hall_filament_width_sensor.py
@@ -49,10 +49,10 @@ class HallFilamentWidthSensor:
# Start adc
self.ppins = self.printer.lookup_object('pins')
self.mcu_adc = self.ppins.setup_pin('adc', self.pin1)
- self.mcu_adc.setup_minmax(ADC_SAMPLE_TIME, ADC_SAMPLE_COUNT)
+ self.mcu_adc.setup_adc_sample(ADC_SAMPLE_TIME, ADC_SAMPLE_COUNT)
self.mcu_adc.setup_adc_callback(ADC_REPORT_TIME, self.adc_callback)
self.mcu_adc2 = self.ppins.setup_pin('adc', self.pin2)
- self.mcu_adc2.setup_minmax(ADC_SAMPLE_TIME, ADC_SAMPLE_COUNT)
+ self.mcu_adc2.setup_adc_sample(ADC_SAMPLE_TIME, ADC_SAMPLE_COUNT)
self.mcu_adc2.setup_adc_callback(ADC_REPORT_TIME, self.adc2_callback)
# extrude factor updating
self.extrude_factor_update_timer = self.reactor.register_timer(