Skip to content

Commit

Permalink
fix3
Browse files Browse the repository at this point in the history
  • Loading branch information
torchiaf committed Feb 2, 2025
1 parent 8d39127 commit 82c501c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controller/rpc_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"encoding/json"
"log"
"math"
"strconv"
"time"

Expand Down Expand Up @@ -59,7 +60,7 @@ func main() {
"tm1637",
[]string{
"temperature",
strconv.FormatFloat(float64(temperature), 'f', -1, 64),
strconv.Itoa(int(math.Round(temperature))),
},
)
failOnError(err, "Failed to handle RPC request: tm1637")
Expand Down

0 comments on commit 82c501c

Please sign in to comment.