u-blox / c209-aoa-tag

Bluetooth Direction Finding Tag sample application. Works with u-connectLocate.
https://www.u-blox.com/en/technologies/bluetooth-indoor-positioning
Apache License 2.0
33 stars 12 forks source link

Advertising on/off control bug #19

Closed thomasabbott closed 2 years ago

thomasabbott commented 2 years ago

When advertising is stopped (long press on SW2), the c209 will start advertising again with a short press. The LED does not flash. This happens without setting isAdvRunning to true because btAdvUpdateAdvInterval() includes a call to btAdvStart() [see bt_adv.c]. The tag continues to advertise normally, cycling through the different rates, but the LED does not flash because isAdvRunning is still false.

Ugly solution would be to test isAdvRunning on line 132 if (type == BUTTONS_SHORT_PRESS)&&(isAdvRunning) {

thomasabbott commented 2 years ago

Never mind - it's fixed in V2. (Please upload a binary for this when it's done)