mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-23 22:54:10 -06:00
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:
parent
3f8f30d612
commit
4688c21c54
6 changed files with 19 additions and 16 deletions
|
@ -33,7 +33,8 @@ class Thermistor:
|
|||
/ (ln3_r12 - ln3_r13 * ln_r12 / ln_r13))
|
||||
if self.c3 <= 0.:
|
||||
beta = ln_r13 / inv_t13
|
||||
logging.warn("Using thermistor beta %.3f in heater %s", beta, name)
|
||||
logging.warning("Using thermistor beta %.3f in heater %s",
|
||||
beta, name)
|
||||
self.setup_coefficients_beta(t1, r1, beta)
|
||||
return
|
||||
self.c2 = (inv_t12 - self.c3 * ln3_r12) / ln_r12
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue