Skip to content

sensor measurements are only executed once #8

Description

@nxdefiant

The Method _configure_sensor() writes register ctrl_meas (0x74) two times:

  • first in line 91 with value 0x24. The comment says oversampling x4. According to my datasheet value 0x24 is oversamling x1. Oversampling x4 would be 0x6d.

  • second in line 94, overwriting the value in line 91 which probably can be removed. But the register ctrl_meas is only written in the initial configuration, so the ambient values never gets updated. _configure_sensor() should probably be also called after every read.

The humdity oversampling in line 88 also doesn't match the comment.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions