mirror of https://github.com/Desuuuu/klipper.git
temperature_host: Rename "path" config to "sensor_path"
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
227d9bdbcf
commit
c29585f7f3
|
@ -8,9 +8,10 @@ All dates in this document are approximate.
|
|||
|
||||
20210219: The `rpi_temperature` module has been renamed to
|
||||
`temperature_host`. Replace any occurrences of `sensor_type:
|
||||
rpi_temperature` with `sensor_type: temperature_host`. The
|
||||
`rpi_temperature` name is deprecated and will be removed in the near
|
||||
future.
|
||||
rpi_temperature` with `sensor_type: temperature_host`. The path to
|
||||
the temperature file may be specified in the `sensor_path` config
|
||||
variable. The `rpi_temperature` name is deprecated and will be
|
||||
removed in the near future.
|
||||
|
||||
20210201: The `TEST_RESONANCES` command will now disable input shaping
|
||||
if it was previously enabled (and re-enable it after the test). In order
|
||||
|
|
|
@ -2151,7 +2151,7 @@ Temperature from the machine (eg Raspberry Pi) running the host software.
|
|||
|
||||
```
|
||||
sensor_type: temperature_host
|
||||
#path:
|
||||
#sensor_path:
|
||||
# The path to temperature system file. The default is
|
||||
# "/sys/class/thermal/thermal_zone0/temp" which is the temperature
|
||||
# system file on a Raspberry Pi computer.
|
||||
|
|
|
@ -14,7 +14,7 @@ class Temperature_HOST:
|
|||
self.printer = config.get_printer()
|
||||
self.reactor = self.printer.get_reactor()
|
||||
self.name = config.get_name().split()[-1]
|
||||
self.path = config.get("path", RPI_PROC_TEMP_FILE)
|
||||
self.path = config.get("sensor_path", RPI_PROC_TEMP_FILE)
|
||||
|
||||
self.temp = self.min_temp = self.max_temp = 0.0
|
||||
|
||||
|
|
Loading…
Reference in New Issue