Skip to content

Commit

Permalink
Fix swapped values for humidity and temperature. Closes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
florianluediger committed Aug 22, 2022
1 parent 1edeabc commit 732310f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/driver.toit
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Scd30:
humidity_data := data[12..14] + data[15..17]
humidity := binary.BIG_ENDIAN.float32 humidity_data 0

return Measurements co2 temperature humidity
return Measurements co2 humidity temperature

/**
Checks checksum and throws if wrong.
Expand Down

0 comments on commit 732310f

Please sign in to comment.