Fix OSD active elements init logic to handle delayed items with delayed activation
commit4a13c48adfe8b28a07d09666fab7059a46254878
authorBruce Luckcuck <github@etracer.net>
Sat, 23 Feb 2019 14:32:46 +0000 (23 09:32 -0500)
committerBruce Luckcuck <github@etracer.net>
Sat, 23 Feb 2019 23:21:59 +0000 (23 18:21 -0500)
tree0dc7a1391d3b4ee38c45d543599d4db6e3507ead
parentbdacbf80b929ceed10d4b9048565e5745e930a1e
Fix OSD active elements init logic to handle delayed items with delayed activation
Track the state of `sensors(SENSOR_GPS)` and rebuild the active OSD element list when it changes. The GPS sensor can have delayed activation or even deactivate if communication is lost with the module.

Also move the `BOXBLACKBOX` check from the initialization to the runtime element drawing as it can also change in flight.
src/main/osd/osd_elements.c