fix(pkg/sensor): temperature measurement unit
This commit is contained in:
@ -9,6 +9,7 @@ import (
|
||||
"github.com/go-flucky/flucky/pkg/config"
|
||||
"github.com/go-flucky/flucky/pkg/logfile"
|
||||
"github.com/go-flucky/flucky/pkg/sensor"
|
||||
"github.com/go-flucky/flucky/pkg/types"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
@ -34,7 +35,7 @@ var readTemperatureCmd = &cobra.Command{
|
||||
temperatureSensors = cnf.GetTemperatureSensorsByName(args)
|
||||
}
|
||||
|
||||
temperatures, err := sensor.ReadTemperatures(temperatureSensors, round)
|
||||
temperatures, err := sensor.ReadTemperatures(temperatureSensors, types.DegreeCelsius, round)
|
||||
if err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user