HumanDynamics / openbadge

MIT License
49 stars 19 forks source link

Badge broadcast message doesn't always update #66

Closed OrenLederman closed 7 years ago

OrenLederman commented 7 years ago

It seems that at least the status bits don't always update. Can't seem to find a specific way to recreate yet

OrenLederman commented 7 years ago

Erasing the flash and flushing the code seems to fix this issue. This is still odd.

OrenLederman commented 7 years ago

How to recreate:

If you just start the badge and not pull data, it does update the advertisement (setAdvData). I also added a printout to see when it's being call - and when the bug happens, it's not really being called.

OrenLederman commented 7 years ago

It seems that when recording is on, the code in ble_evt_dispatch it never gets to if(needAdvDataUpdate) . It always stops before that part because of pause requests

OrenLederman commented 7 years ago

Temporary fix in pull request #71