Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support reading rainfall from the kernel #488

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

alistair23
Copy link
Contributor

No description provided.

Copy link
Contributor

@hudson-ayers hudson-ayers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good, but a couple comments on documentation

Comment on lines +15 to +16
// - `hours`: The number of hours to get the rainfall data from. 0 is the instant
// rainfall (if supported). Otherwise 1 to 24 hours are valid values.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recall you removed the instant rainfall from the kernel API description, so lets remove it here as well

// Function signature for rainfall data callback.
//
// - `arg1` (`int`): Returncode indicating status from sampling the sensor.
// - `arg2` (`int`): rainfall in hundredths of percent.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like the description for arg2 should match the description of the rainfall argument in libtock-sync/sensors/rainfall.h?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants