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>
This commit is contained in:
Thijs Triemstra
2023-11-17 04:06:13 +01:00
committed by GitHub
parent 3f8f30d612
commit 4688c21c54
6 changed files with 19 additions and 16 deletions

View File

@@ -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: