Skip to content

No option for measurement without busywait #11

Open
@PimSwinkelsCreative

Description

@PimSwinkelsCreative

The dataAvailable() function is public and can therefore be used to only call getObjectTemp or getDeviceTemp when new data is available (most usefull when measuring in continuous mode). Both getObjectTemp and getDeviceTemp do call clearNewData(). This means that the unit will have to busywait for the full update time.

This could be avoided by giving getObjectTemp a bool as input: waitForNewData. This is true by default, but can be set to false if the user wants to only call the fucntion if they know the data is new.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions