mag3110: change method name/signature for obtaining temperature to be uniform with other similar drivers

Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
Ron Evans
2019-04-24 10:53:56 +02:00
committed by Ayke van Laethem
parent 35a7590c2d
commit b7fe897b8c
2 changed files with 9 additions and 4 deletions
+5 -1
View File
@@ -16,7 +16,11 @@ func main() {
for {
x, y, z := mag.ReadMagnetic()
println(x, y, z)
println("Magnetic readings:", x, y, z)
c, _ := mag.ReadTemperature()
println("Temperature:", float32(c)/1000, "ºC")
time.Sleep(time.Millisecond * 100)
}
}