     Serial.print(" "); Serial.print(event_queue[i]);
   }
   Serial.println("");
-  Serial.print("Queue length="); Serial.println(queue_len());
+  Serial.print("Queue length="); Serial.println(events_pending());
   Serial.print("queue_aft="); Serial.print(queue_aft);
   Serial.print(", queue_fore="); Serial.println(queue_fore);
 

  int old_position = VfoSelectDigit;

  // handle all events in the queue
  while (queue_len() > 0)
  {
    // get next event and handle it
    byte event = pop_event();

////////////////////////////////////////////////////////////////////////////////
// Utility routines for the display.
////////////////////////////////////////////////////////////////////////////////

//----------------------------------------------------------
// Print the frequency on the display with selected colum underlined.
