fix(pkg/config): option to select all, enable or disable temperature sensors
This commit is contained in:
@ -28,7 +28,7 @@ var readTemperatureCmd = &cobra.Command{
|
||||
}
|
||||
|
||||
// fetch all temperature sensors
|
||||
temperatureSensors := cnf.GetTemperatureSensors()
|
||||
temperatureSensors := cnf.GetTemperatureSensors(config.ENABLED)
|
||||
|
||||
// read temperature from sensors
|
||||
temperatures, err := sensor.ReadTemperatures(temperatureSensors)
|
||||
|
Reference in New Issue
Block a user