pozyxLabs / Pozyx-Arduino-library

The Arduino library for use with the pozyx accurate indoor positioning system.
https://www.pozyx.io
MIT License
78 stars 53 forks source link

Can't set setUpdateInterval back to 0 #73

Open gunnicus opened 6 years ago

gunnicus commented 6 years ago

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); }