 
     // save default call sign
     strcpy(call_sign, CALL_SIGN); // load callsign
-    for (uint8_t i = 0; i < sizeof(call_sign); i++) {
+    for (uint8_t i = 0; i < sizeof(call_sign); i++)
       EEPROM.write(EEPROM_ADR_CALLSIGN + i, call_sign[i]);
-    }
 
 #ifdef USE_DIVERSITY
     // diversity

#endif
  setReceiver(useReceiverA);
  // SPI pins for RX control
  pinMode (slaveSelectPin, OUTPUT);
  pinMode (spiDataPin, OUTPUT);
  pinMode (spiClockPin, OUTPUT);

  // use values only of EEprom is not 255 = unsaved
  uint8_t eeprom_check = EEPROM.read(EEPROM_ADR_STATE);
  if (eeprom_check == 255) // unused
  {
    // save 8 bit
    EEPROM.write(EEPROM_ADR_STATE, START_STATE);
    EEPROM.write(EEPROM_ADR_TUNE, CHANNEL_MIN_INDEX);

// All Channels of the above List ordered by Mhz
const uint8_t channelList[] PROGMEM = {
#ifdef USE_LBAND
  40, 41, 42, 43, 44, 45, 46, 47, 19, 18, 32, 17, 33, 16, 7,  34, 8,  24, 6,  9,  25, 5,  35, 10, 26, 4,  11, 27, 3, 36, 12, 28, 2,  13, 29, 37, 1,  14, 30, 0, 15, 31, 38, 20, 21, 39, 22, 23
#else
  19, 18, 32, 17, 33, 16, 7,  34, 8,  24, 6,  9,  25, 5,  35, 10, 26, 4,  11, 27, 3,  36, 12, 28, 2,  13, 29, 37, 1, 14, 30, 0,  15, 31, 38, 20, 21, 39, 22, 23
#endif
};

char    channel           = 0;
uint8_t channelIndex      = 0;
uint8_t rssi              = 0;
uint8_t p_rssi            = 0;
uint8_t rssi_scaled       = 0;
uint8_t active_receiver   = useReceiverA;
uint8_t p_active_receiver = -1;

#ifdef USE_DIVERSITY
uint8_t diversity_mode        = useReceiverAuto;
char    diversity_check_count = 0;                   // used to decide when to change antennas.
#endif
uint8_t       rssi_seek_threshold = RSSI_SEEK_TRESHOLD;
uint8_t       hight               = 0;
uint8_t       state               = START_STATE;
uint8_t       state_last_used     = START_STATE;
uint8_t       last_state          = START_STATE + 1; // force screen draw
uint8_t       writePos            = 0;
uint8_t       switch_count        = 0;
uint8_t       man_channel         = 0;
uint8_t       last_channel_index  = 0;
uint8_t       force_seek          = 0;
uint8_t       seek_direction      = 1;
unsigned long time_of_tune        = 0;               // will store last time when tuner was changed
unsigned long time_screen_saver   = 0;
unsigned long time_screen_saver2  = 0;
unsigned long time_next_payload   = 0;
uint8_t       last_active_channel = 0;
uint8_t       seek_found          = 0;
uint8_t       last_dip_channel    = 255;
uint8_t       last_dip_band       = 255;
uint8_t       scan_start          = 0;
uint8_t       first_tune          = 1;
boolean       force_menu_redraw   = 0;
uint16_t      rssi_best           = 0;               // used for band scaner
uint16_t      rssi_min_a          = RSSI_MIN_VAL;
uint16_t      rssi_max_a          = RSSI_MAX_VAL;
uint16_t      rssi_setup_min_a    = RSSI_MIN_VAL;
uint16_t      rssi_setup_max_a    = RSSI_MAX_VAL;
#ifdef USE_DIVERSITY
uint16_t rssi_min_b       = RSSI_MIN_VAL;
uint16_t rssi_max_b       = RSSI_MAX_VAL;
uint16_t rssi_setup_min_b = RSSI_MIN_VAL;
uint16_t rssi_setup_max_b = RSSI_MAX_VAL;
#endif
uint8_t rssi_setup_run = 0;

char    call_sign[10];
bool    settings_beeps           = true;
bool    settings_OSD             = true;
bool    settings_orderby_channel = true;
bool    HaveFav    = false;
bool    RefreshFav = false;
uint8_t FirstFav   = 0;
//bool FATSHARK_BUTTON_PUSHED=false;
//int  LAST_FATSHARK_BUTTON_STATE=0;
int  lfavs         = 0;
byte FS_BUTTON_DIR = 0;

// SETUP ----------------------------------------------------------------------------
void setup()
{
  Serial.begin(57600);
  // initialize digital pin 13 LED as an output.
  pinMode(led, OUTPUT); // status pin for TV mode errors
