Skip to content

Conversation

@brolan-juul
Copy link
Contributor

Adding an extra parameter to potentially delay the first event.

Copy link
Contributor

@ccollins476ad ccollins476ad left a comment

Choose a reason for hiding this comment

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

The code looks good to me. The only issue is that this changes a public API. The Mynewt release policy requires some amount of heads up to the community before such a change is made (https://cwiki.apache.org/confluence/display/MYNEWT/Release+and+Support+Policy#ReleaseandSupportPolicy-BackwardsCompatibility).

It might be easiest to sidestep this issue by adding a second function instead. Something like battery_set_poll_rate_ms_delay() or battery_next_run_delay() (the latter could just update b_next_run).

@brolan-juul
Copy link
Contributor Author

I just created a function for battery_set_poll_rate_ms_delay()

@ccollins476ad ccollins476ad merged commit 49f8a35 into apache:master Dec 7, 2018
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