           return "ERROR";
         VfoFrequency = tmp_freq;
         display_sel_value(VfoFrequency, VfoSelectDigit, NumFreqChars,
-                          NumCols - NumFreqChars - 2, 0);
+                          LcdNumCols - NumFreqChars - 2 - 2, 0);
         return "OK";
       }
   }

  measure_battery();
  
  // update the display
  display_sel_value(VfoFrequency, VfoSelectDigit, NumFreqChars, NumCols - NumFreqChars - 2, 0);
  display_battery();

  // if online, update DDS-60 and write changes to EEPROM

        lcd.write(char_val + '0');
      }
    }
    if (++comma_count >= 3)
    {
      if (i < num_digits - 1)
      {
        if (!lead_zero)
          lcd.write(",");
        else
          lcd.write(" ");
      }
      
      comma_count = 0;
    }
  }
}


//----------------------------------------
// Display an integer with sign on the display with selected column underlined.
