input_flag = readkey_compare();
if(input_flag != 0){
readchar = pop_keyinfifo();
- switch(readchar) {
- // Top of input-tree.
- case charcode_s0:
- // Change FM/AM
- toggle_amfm();
- break;
- case charcode_s1:
- //
- backlight_counter = backlight_long;
- break;
- case charcode_s2:
- // ENTER
- break;
- case charcode_s3:
- // Reserve
- break;
- case charcode_null: // None
- break;
- default:
- // Numeric 0to9, or a to f.
+ if((readchar >= charcode_1) && (readchar <= charcode_f)) {
setfreq_updown(readchar);
- break;
+ } else {
+ // Other is skip
}
}
#ifndef _LCD_DEBUG