clean up cmake and swap humidity and pressure
This commit is contained in:
parent
d96ada276d
commit
eac8412475
3 changed files with 6 additions and 15 deletions
|
|
@ -98,12 +98,12 @@ func (app *App) handleMsg(message *Message) {
|
|||
slog.Error("Error parsing temperature", "error", err)
|
||||
return
|
||||
}
|
||||
humidity, err := strconv.ParseFloat(message.Data[1], 32)
|
||||
humidity, err := strconv.ParseFloat(message.Data[2], 32)
|
||||
if err != nil {
|
||||
slog.Error("Error parsing humidity", "error", err)
|
||||
return
|
||||
}
|
||||
pressure, err := strconv.ParseFloat(message.Data[2], 32)
|
||||
pressure, err := strconv.ParseFloat(message.Data[1], 32)
|
||||
if err != nil {
|
||||
slog.Error("Error parsing pressure", "error", err)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue