Strip whitespace from bulk temperature read
This commit is contained in:
parent
840777b2fd
commit
2d8e1d603a
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ func pollBusState() (BulkReadBusState, error) {
|
||||||
return BulkReadIdle, err
|
return BulkReadIdle, err
|
||||||
}
|
}
|
||||||
|
|
||||||
i, err := strconv.Atoi(string(b))
|
i, err := strconv.Atoi(strings.TrimSpace(string(b)))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return BulkReadIdle, err
|
return BulkReadIdle, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue