       bestFrequency = scanFrequency;
     }
   }
-
   // Return the best frequency
   setRTC6715Frequency(bestFrequency);
   return (bestFrequency);

//******************************************************************************
void drawScannerScreen( void ) {
  display.clearDisplay();
  display.drawLine(0, 56, 127, 56, WHITE);
  display.drawLine(101, 0, 101, 55, WHITE);
  updateScannerScreen(0, 0);
}

//******************************************************************************
//* function: updateScannerScreen
//*         : position = 0 to 99
//*         : value = 0 to 55
//******************************************************************************
void updateScannerScreen(uint8_t position, uint8_t value ) {
  static uint8_t errase_position = 0;
  static uint8_t errase_value = 0;
  display.drawLine( errase_position, 0, errase_position, errase_value, BLACK );
  display.fillRect(0, 57, 128, 7, BLACK);
  display.setTextColor(WHITE);
  display.setTextSize(1);
  display.setCursor(0, 55);
  display.print("5.645   5.800   5.945");
  display.drawLine( position,      0, position,     63, WHITE );
  display.drawLine( position - 1, 58, position - 1, 63, WHITE );
  display.drawLine( position + 1, 58, position + 1, 63, WHITE );
  display.drawLine( position - 2, 60, position - 2, 63, WHITE );
  display.drawLine( position + 2, 60, position + 2, 63, WHITE );
  display.drawLine( position - 3, 62, position - 3, 63, WHITE );
  display.drawLine( position + 3, 62, position + 3, 63, WHITE );
  errase_position = position;
  if (value > 55)
    value = 55;
  errase_value = 55 - value;
  display.display();
}


  uint16_t scanFrequency = frequency;
  uint16_t bestFrequency = frequency;
  uint8_t clickType;
  uint8_t rssiDisplayValue;

  // Draw screen frame etc
  drawScannerScreen();
