 //*         : when the button is pressed the current frequency is returned.
 //******************************************************************************
 uint16_t graphicScanner( uint16_t frequency ) {
-  uint8_t i;
+  uint8_t  i;
+  uint8_t  clickType;
+  uint8_t  rssiDisplayValue;
   uint16_t scanRssi;
   uint16_t bestRssi = 0;
   uint16_t scanFrequency = frequency;
   uint16_t bestFrequency = frequency;
-  uint8_t clickType;
-  uint8_t rssiDisplayValue;
 
   // Draw screen frame etc
   drawScannerScreen();

              display.setRotation(2);
            break;
        }
      lastFunction = 255;
      break;

    case SINGLE_CLICK: // up the frequency

#ifdef SH1106_OLED_DRIVER
Adafruit_SH1106 display(4);
#endif

uint8_t  lastClick = NO_CLICK;
uint8_t  currentChannel = 0;
uint8_t  lastChannel = 0;
uint8_t  clickType = NO_CLICK;
uint8_t  ledState = LED_ON;
uint8_t  alarmSoundOn = 0;
uint8_t  options[MAX_OPTIONS];
uint8_t  saveScreenActive = 0;
uint8_t  softPositions[48];

uint16_t currentRssi = 0;
uint16_t alarmOnPeriod = 0;
uint16_t alarmOffPeriod = 0;
uint32_t pauseStart = 0;
uint32_t saveScreenTimer;

uint32_t displayUpdateTimer = 0;
uint32_t eepromSaveTimer = 0;
uint32_t pulseTimer = 0;
uint32_t alarmTimer = 0;

rtc6715  receiver( SPI_CLOCK_PIN, SLAVE_SELECT_PIN, SPI_DATA_PIN );

//******************************************************************************
//* function: setup
//******************************************************************************
void setup()
{
  // initialize LED pin
  pinMode(LED_PIN, OUTPUT);
  digitalWrite(LED_PIN, LED_ON);
