 
 void display_battery(void)
 {
+#if SHOW_VOLTAGE
+  // display measured voltage
+  sprintf(FreqBuffer, "%.2fv", MeasuredVoltage);
+  lcd.setCursor(9, 1);
+  lcd.print(FreqBuffer);
+#endif
+
   // create special battery character
   lcd.createChar(BatteryChar, BatterySymbol);
 

// If DEBUG reporting is turned on, we report every "ReportVoltageDelay" measurements.
//----------------------------------------

int batt_report_count = 0;
  
void measure_battery(void)
{
  // get the time since the last measurement

#define DEBUG_BATT    (1 << 8)  // battery

// DEBUG word for debugging program - bitmask values
//#define DEBUG         (DEBUG_BATT)
#define DEBUG         0

// Digital VFO program name & version
const char *ProgramName = "DigitalVFO";
