LCD_KCAL: Prevent out-of-range input values