jonas-schievink / rubble

(going to be a) BLE stack for embedded Rust
BSD Zero Clause License
397 stars 56 forks source link

Figure out Slave Latency #82

Closed jonas-schievink closed 4 years ago

jonas-schievink commented 4 years ago

Currently Rubble will panic when the master sets a non-zero slave latency. It shouldn't do that.

I'm not entirely sure, but I think we can just ignore the field, log a warning, and pretend it's always zero. This will waste energy listening for events that never happen, but should function correctly.

Testing this requires support for requesting a non-zero slave latency from the master.

jonas-schievink commented 4 years ago

The maximum slave latency is 499, so we need to check that that still works correctly (that's a lot of time without synchronization!)