 float get_volts(void)
 {
   // measure the raw volts and adjust
+  // the UINT read is in range [0..1023] over 3.3 volts
+  // the VDIV_RATIO is the voltage divide ratio, R12 and R13
+  // VoltsCalibrate is the calibration value, a float
   UINT measured = analogRead(mc_BattVolts);
-  return (3.3 * measured) / 1023 * 32.11/9.90;
+  float voltage = 3.3 * measured / 1023;
+  
+  return voltage * (VDIV_RATIO * VoltsCalibrate/VCALIBBASE);
 }
 
 void measure_battery(void)

int LcdBrightness = DefaultLcdBrightness;

// adjustment value for DDS-60 (set in 'Calibrate' menu)
int VfoClockOffset = 0;

// global pointing to symbol for current battery state
byte *BatterySymbol = battunder;

// define the length of the event queue
const int EventQueueLength = 10;


//-----
// VFO modes.  Online or standby.
//-----

//-----
// Miscellaneous.
//-----
