OSDN Git Service

[ADC][Battery] Fix stability, but still not collect.
[openi2cradio/OpenI2CRadio.git] / menu_setup.c
index 1755f54..77352cc 100644 (file)
@@ -38,6 +38,7 @@ void menu_save(void)
     c = printhelp_2lines("Save settings", "A=Yes");
     if(c == charcode_a) {
         save_eeprom();
+        save_userbands();
     }
 }
 
@@ -47,13 +48,15 @@ void menu_load(void)
     c = printhelp_2lines("Load settings", "A=Yes B=Init");
     if(c == charcode_a) {
         c = load_eeprom();
+        load_userbands();
         if( c != 0xff) {
             _CLS();
-            _LOCATE(0,0);
+//            _LOCATE(0,0);
             c = printhelp_2lines("X) Load Error", "A=Fix");
             setdefault();
             if(c == charcode_a){
                 save_eeprom();
+               save_userbands();
             }
         }
         setup_akc6955();
@@ -70,8 +73,11 @@ void setup_menu(void)
 
     c = printhelp_2lines("Setup F=HELP", "5=Return");
     _CLS();
-    _LOCATE(0,0);
+   // _LOCATE(0,0);
     switch(c){
+        case charcode_1:
+                list_userband();
+                break;
         case charcode_3:
             printstr("BL Level:");
             val = read_numeric(setup.backlight_level, 3, 0,1);
@@ -83,8 +89,8 @@ void setup_menu(void)
             break;
         case charcode_4:
             printstr("FM Bandwidth:");
-            akc6955_get_fmbandwidth(c);
-            setup.fmbandwidth = pollkey_numeric(c) & 3;
+//            c = akc6955_get_fmbandwidth();
+            setup.fmbandwidth = pollkey_numeric(0) & 3;
             akc6955_set_fmbandwidth(setup.fmbandwidth);
             break;
         case charcode_5:
@@ -134,6 +140,6 @@ void setup_menu(void)
             break;
     }
     _CLS();
-    _LOCATE(0,0);
+    _LOCATE_0_0();
 }