diff options
author | Thijs Triemstra <info@collab.nl> | 2023-11-17 04:06:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-16 22:06:13 -0500 |
commit | 4688c21c54dfb89ef9902b607521a8cc0e99c94a (patch) | |
tree | 4f446f98f659335ef6036c614d40b3298f8230dd /klippy/extras/adc_temperature.py | |
parent | 3f8f30d6123c647c05ba3f4f58477d9dda36f03f (diff) | |
download | kutter-4688c21c54dfb89ef9902b607521a8cc0e99c94a.tar.gz kutter-4688c21c54dfb89ef9902b607521a8cc0e99c94a.tar.xz kutter-4688c21c54dfb89ef9902b607521a8cc0e99c94a.zip |
klippy: Replace deprecated logger.warn with logger.warning (#6385)
Replace deprecated logger.warn with logger.warning
logger.warn will be removed in Python 3.13
Signed-off-by: Thijs Triemstra <info@collab.nl>
Diffstat (limited to 'klippy/extras/adc_temperature.py')
-rw-r--r-- | klippy/extras/adc_temperature.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/extras/adc_temperature.py b/klippy/extras/adc_temperature.py index d456a653..b76e8c66 100644 --- a/klippy/extras/adc_temperature.py +++ b/klippy/extras/adc_temperature.py @@ -95,8 +95,8 @@ class LinearVoltage: for temp, volt in params: adc = (volt - voltage_offset) / adc_voltage if adc < 0. or adc > 1.: - logging.warn("Ignoring adc sample %.3f/%.3f in heater %s", - temp, volt, config.get_name()) + logging.warning("Ignoring adc sample %.3f/%.3f in heater %s", + temp, volt, config.get_name()) continue samples.append((adc, temp)) try: |