 void display_battery(void)
 {
 #if SHOW_VOLTAGE
-  // display measured voltage
-  sprintf(FreqBuffer, "%.2fv", MeasuredVoltage);
+  // display measured voltage if we have a bettery
+  strcpy(FreqBuffer, "     ");
+  
+  if (MeasuredVoltage > NoBattVoltage)
+  {
+    sprintf(FreqBuffer, "%.2fv", MeasuredVoltage);
+  }
+  
   lcd.setCursor(9, 1);
   lcd.print(FreqBuffer);
 #endif

const int EventQueueLength = 10;

//-----
// VFO modes.
//-----

// VFO modes - online or standby
enum Mode 
{
  vfo_Standby,

const int MaxOffsetDigits = 5;

// battery voltage limits
const float OverVoltage = 8.35;   // battery voltage for CHARGING & FULL
const float MaxVoltage = 7.8;     // battery voltage for "100% full"
const float MinVoltage = 6.48;    // battery voltage for "0% full"
                                  // BMS disconnects at around 6.40v
