Strip whitespace from bulk temperature read

This commit is contained in:
Søren Rasmussen 2022-03-18 13:48:33 +01:00
parent 840777b2fd
commit 2d8e1d603a

View file

@ -183,7 +183,7 @@ func pollBusState() (BulkReadBusState, error) {
return BulkReadIdle, err
}
i, err := strconv.Atoi(string(b))
i, err := strconv.Atoi(strings.TrimSpace(string(b)))
if err != nil {
return BulkReadIdle, err
}