Skip to content

Commit

Permalink
Merge pull request #4 from florianluediger/main
Browse files Browse the repository at this point in the history
Fix swapped values for humidity and temperature. Closes #3
  • Loading branch information
jacobqvist committed Aug 22, 2022
2 parents 1edeabc + 732310f commit b1b3dfc
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 b1b3dfc

Please sign in to comment.