fix(pkg/sensor): temperature measurement unit

This commit is contained in:
2019-06-23 13:33:09 +02:00
parent 1e25b55789
commit 3bb10a4f78
22 changed files with 154 additions and 42 deletions

View File

@ -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)
}