OSDN Git Service

[UI][MENU] Improve power-save on Volume/CALL-USER-CH menu.
[openi2cradio/OpenI2CRadio.git] / ui_updown.c
index 1567914..a51cec5 100644 (file)
@@ -122,18 +122,9 @@ static void setband_updown(unsigned char updown)
 void setfreq_updown(unsigned char ctlword)
 {
     unsigned int freq;
-    if((ctlword != charcode_e) && (ctlword >= charcode_1)
-            && (ctlword <= charcode_f)) {
-            backlight_counter = setup.backlight_long;
-            lcd_setbacklight(0xff, setup.backlight_level); // Turn ON
-    } else if(ctlword == charcode_e){
-        if(backlight_counter != 0){
-            backlight_counter = 0;
-        } else {
-            backlight_counter = setup.backlight_long;
-        }
-        return;
-    }
+
+    backlight_reset(ctlword);
+
 
     update_status();
     switch(ctlword){
@@ -236,13 +227,4 @@ void setfreq_updown(unsigned char ctlword)
         default:
             break;
     }
-//    if(fm == 0){
-//        akc6955_get_amband(amband);
-//        amfreq = akc6955_get_freq();
-//        amfreq_bank[amband] = amfreq;
-//    } else {
-//        akc6955_get_fmband(fmband);
-//        fmfreq = akc6955_get_freq();
-//        fmfreq_bank[fmband] = fmfreq;
-//    }
 }