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

Can't set setUpdateInterval back to 0 #73

Open
gunnicus opened this issue Apr 4, 2018 · 0 comments
Open

Can't set setUpdateInterval back to 0 #73

gunnicus opened this issue Apr 4, 2018 · 0 comments

Comments

@gunnicus
Copy link

gunnicus commented Apr 4, 2018

I'm trying to set updateinterval back to 0, but I've noticed this assert(ms > 100); is preventing me to do so. I end up have to comment out this line.

Maybe change it to something like this:

int PozyxClass::setUpdateInterval(uint16_t ms, uint16_t remote_id)
{
assert(ms > 100 || ms==0);
assert(ms <= 60000);

return setWrite(POZYX_POS_INTERVAL, (uint8_t *) &ms, 2, remote_id);
}

@laurentva laurentva reopened this Dec 20, 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

No branches or pull requests

2 participants