OSDN Git Service

[UI] Using key is only keypad; '0' to 'F'.
authorK.Ohta <whatisthis.sowhat@gmail.com>
Thu, 13 Jun 2013 05:17:43 +0000 (14:17 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Thu, 13 Jun 2013 05:17:43 +0000 (14:17 +0900)
main.c

diff --git a/main.c b/main.c
index c45a166..b3de266 100644 (file)
--- a/main.c
+++ b/main.c
@@ -684,28 +684,10 @@ int main(void)
         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