I need to set the connection interval to 7.5 ms. The main.c has the corresponding macro: MIN_CONN_INTERVAL but it seems to me that it supports only integer values...
Please let me know how to handle that.
Thanks.
I need to set the connection interval to 7.5 ms. The main.c has the corresponding macro: MIN_CONN_INTERVAL but it seems to me that it supports only integer values...
Please let me know how to handle that.
Thanks.
Interesting. I suppose it's unlikely the units will change then, absent a core spec update. Good catch.
Howard, why do you think it is a good catch? I'm not following.
I think it's a good catch because the 1.25mS unit defined in the spec is not likely to change. OTOH there is the issue of the units being obscured by the preproc macro. Would you prefer to pass a floating (or fixed point) interval to a wrapper?
I'd prefer to have a macro which indeed takes everything. I do agree that 1.25 isn't going to change then using units of ms in the given macro doesn't make much sense and that is the whole reason for my complaint.
Why do you think it only supports integer?
It works fine for me as long as time can be converted to units that are encoded as integer. Give a try passing 7.5 to macro and see that it will work.