   // set brightness/contrast pin state
   pinMode(mc_Brightness, OUTPUT);
   pinMode(mc_Contrast, OUTPUT);
+
+  // force a full EEPROM write, debug
+//  initialize_eeprom();
 
   // get state back from EEPROM, set display brightness/contrast
   restore_from_eeprom();

float get_volts(void)
{
  // measure the raw volts and adjust
  UINT measured = analogRead(mc_BattVolts);
  return (3.3 * measured) / 1023 * 32.11/9.90;
}

void measure_battery(void)

{
  EEPROM.get(EepromFreq, VfoFrequency);
  EEPROM.get(EepromSelDigit, VfoSelectDigit);
  EEPROM.get(EepromVfoClockOffset, VfoClockOffset);
  EEPROM.get(EepromBrightness, LcdBrightness);
  EEPROM.get(EepromContrast, LcdContrast);
  EEPROM.get(EepromHoldClickTime, ReHoldClickTime);
  EEPROM.get(EepromDClickTime, ReDClickTime);
  EEPROM.put(EepromVoltsCalibrate, VoltsCalibrate);
  
  Serial.printf(F("restore_from_eeprom: VfoClockOffset=%ld\n"), VfoClockOffset);
  Serial.printf(F("restore_from_eeprom: VoltsCalibrate=%ld\n"), VoltsCalibrate);
  Serial.printf(F("restore_from_eeprom: EepromVfoClockOffset=%d\n"), EepromVfoClockOffset);
  Serial.printf(F("restore_from_eeprom: EepromVoltsCalibrate=%d\n"), EepromVoltsCalibrate);
  Serial.printf(F("restore_from_eeprom: EepromSaveFreqBase=%d\n"), EepromSaveFreqBase);
}

//----------------------------------------
