+ // On timeout, scan again, this needs to run every iteration no
+ // matter what the power or serviceable state. If power is turned
+ // off or the unit becomes unserviceable while a beacon sound is
+ // playing, the search() routine still needs to be called so the
+ // sound effect can be properly disabled.
+
+ _time_before_search_sec -= dt;
+ if ( _time_before_search_sec < 0 ) {
+ search();
+ }
+