 }
 
 //******************************************************************************
-//* function: resetOptions
-//*         : Resets all configuration settings to their default values
-//******************************************************************************
-void resetOptions(void) {
-  options[FLIP_SCREEN_OPTION]      = FLIP_SCREEN_DEFAULT;
-  options[BATTERY_ALARM_OPTION]    = BATTERY_ALARM_DEFAULT;
-  options[ALARM_LEVEL_OPTION]      = ALARM_LEVEL_DEFAULT;
-  options[BATTERY_TYPE_OPTION]     = BATTERY_TYPE_DEFAULT;
-  options[BATTERY_CALIB_OPTION]    = BATTERY_CALIB_DEFAULT;
-  options[SHOW_STARTSCREEN_OPTION] = SHOW_STARTSCREEN_DEFAULT;
-  options[SAVE_SCREEN_OPTION]      = SAVE_SCREEN_DEFAULT;
-  options[A_BAND_OPTION]           = A_BAND_DEFAULT;
-  options[B_BAND_OPTION]           = B_BAND_DEFAULT;
-  options[E_BAND_OPTION]           = E_BAND_DEFAULT;
-  options[F_BAND_OPTION]           = F_BAND_DEFAULT;
-  options[R_BAND_OPTION]           = R_BAND_DEFAULT;
-  options[L_BAND_OPTION]           = L_BAND_DEFAULT;
-}
-
-//******************************************************************************
 //* function: writeEeprom
 //*         : Writes all configuration settings to nonvolatile memory
 //******************************************************************************

  // Draw screen frame etc
  drawScannerScreen();

  while ((clickType = getClickType(BUTTON_PIN)) == NO_CLICK) {
    scanFrequency += SCANNING_STEP;
    if (scanFrequency > FREQUENCY_MAX)
      scanFrequency = FREQUENCY_MIN;

//*         : Cycles through alarms, regardless of alarm settings
//******************************************************************************
void testAlarm( void ) {
  unsigned char i;

  while (getClickType(BUTTON_PIN) == NO_CLICK) {
    for (i = 0; i < 3; i++) {
      analogWrite( ALARM_PIN, 1 << options[ALARM_LEVEL_OPTION] );
      delay(ALARM_MAX_ON);
      analogWrite( ALARM_PIN, 0 );
      delay(ALARM_MAX_OFF);
    }
  }
}

//******************************************************************************
