- /* If there are no log slots available, then
- * do not log the next flight
- */
- if (!log_avail) {
- ao_log_current_pos = 0;
- ao_log_end_pos = 0;
- } else {
- log_slot = ao_flight_number % log_slot;
- while (!((log_avail & (1 << log_slot)))) {
- if ((1 << log_slot) > log_avail)
- log_slot = 0;
- else
- log_slot++;
- }
-// ao_log_current_pos = log_slot * ao_config.flight_log_max;
-// ao_log_end_pos = ao_log_current_pos + ao_config.flight_log_max;