           break;
         case vfo_HoldClick:
           LcdBrightness = old_brightness;
+          analogWrite(mc_Brightness, LcdBrightness);
           event_flush();
           return;
         default:

// Standard Arduino loop() function.
//----------------------------------------

const float MaxVoltage = 8.2;   // battery voltage for "100% full"
const float MinVoltage = 6.4;   // battery voltage for "0% full"

void loop(void)
{
#if INC_BATTERY
  // measure voltage every second
  // we will get a value of 1023 for 3.3 volts
  static UINT last_volts_time = -VoltageDelay;    // millis() value last time we measured
  ULONG now = millis();

//-----

// milliseconds delay between measuring battery voltage
//const int VoltageDelay = 1000;
const int VoltageDelay = 30000;

// stuff for the calibrate action
const int MinClockOffset = -32000;
const int MaxClockOffset = +32000;
const int MaxOffsetDigits = 5;

// battery voltage limits
const float MaxVoltage = 8.2;   // battery voltage for "100% full"
const float MinVoltage = 6.4;   // battery voltage for "0% full"

// macro to get number of elements in an array
#define ALEN(a)    (sizeof(a)/sizeof((a)[0]))
