diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-02-20 09:21:51 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-02-20 09:23:13 -0500 |
commit | c29585f7f37fd289d1ed7f5c83181d45a98ee12d (patch) | |
tree | d1a2419e404dc9a94e22448520607484838c99cc | |
parent | 227d9bdbcfd8ad8b62fb10db48f2482b9900592f (diff) | |
download | kutter-c29585f7f37fd289d1ed7f5c83181d45a98ee12d.tar.gz kutter-c29585f7f37fd289d1ed7f5c83181d45a98ee12d.tar.xz kutter-c29585f7f37fd289d1ed7f5c83181d45a98ee12d.zip |
temperature_host: Rename "path" config to "sensor_path"
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | docs/Config_Changes.md | 7 | ||||
-rw-r--r-- | docs/Config_Reference.md | 2 | ||||
-rw-r--r-- | klippy/extras/temperature_host.py | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/docs/Config_Changes.md b/docs/Config_Changes.md index ffc9a1fb..f2963ef2 100644 --- a/docs/Config_Changes.md +++ b/docs/Config_Changes.md @@ -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 diff --git a/docs/Config_Reference.md b/docs/Config_Reference.md index 701c32a3..2e048276 100644 --- a/docs/Config_Reference.md +++ b/docs/Config_Reference.md @@ -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. diff --git a/klippy/extras/temperature_host.py b/klippy/extras/temperature_host.py index e0a665a9..3950106c 100644 --- a/klippy/extras/temperature_host.py +++ b/klippy/extras/temperature_host.py @@ -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 |