     value = value / 10;
     *ptr-- = char(rem);
   }
+}
+
+//----------------------------------------
+// Convert a numeric mode to a display string.
+//----------------------------------------
+
+const char *mode2display(Mode mode)
+{
+  switch (mode)
+  {
+    case vfo_Standby: return "standby";
+    case vfo_Online:  return "ON";
+  }
+
+  return "UNKNOWN";
 }
 
 

        save_to_eeprom();   // save any changes made
        break;
      case vfo_DClick:
        Serial.printf(F("loop: Got vfo_DClick: ignored\n"));
        break;
      default:
        Serial.printf(F("loop: Unrecognized event: %d\n"), event);

  lcd.print("Vfo:");
  display_sel_value(VfoFrequency, VfoSelectDigit, MAX_FREQ_CHARS, NUM_COLS - MAX_FREQ_CHARS - 2, 0);
  lcd.print("Hz");

  lcd.setCursor(0, 1);
  lcd.write(BlankRow);
  lcd.setCursor(0, 1);
  lcd.write(mode2display(VfoMode));
}

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