Skip to content

Possible arithmetic error evident with larger MTreg #86

@arc12

Description

@arc12

I ran three readings with varying MTreg values (31, default, 200).
Across a range of light levels (in the 100-500 lux range), the lux value computed for MTreg=200 was wildly different to the other cases.

This makes me suspect that there is a bug, probably involving incorrect data types and/or integer division. This could be in the calculation of the time interval (this is tentatively confirmed by injecting my own time delay).

[version 1.3.0 used on ESP8266 arduino platform]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions