OSDN Git Service

[UI] Fix not memory when changing frequency.
authorK.Ohta <whatisthis.sowhat@gmail.com>
Mon, 29 Jul 2013 15:56:00 +0000 (00:56 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Mon, 29 Jul 2013 15:56:00 +0000 (00:56 +0900)
radio_getstat.c
ui.c

index 5c73539..50cc01d 100644 (file)
@@ -67,11 +67,13 @@ void update_status(void)
         if(setup.fm != 0){
             setup.fmfreq = akc6955_get_freq();
             akc6955_get_fmband(setup.fmband);
+            setup.fmfreq_bank[setup.fmband] = setup.fmfreq;
             stereoflag = akc6955_get_stereo();
             akc6955_get_fmbandwidth(setup.fmbandwidth);
         } else {
             setup.amfreq = akc6955_get_freq();
             akc6955_get_amband(setup.amband);
+            setup.amfreq_bank[setup.amband] = setup.amfreq;
             c.byte = akc6955_readcmd(AKC6955_CNR_AM);
             if(c.b7) {
                 setup.am_mode3k = 0xff;
diff --git a/ui.c b/ui.c
index 5d973c8..918f3b2 100644 (file)
--- a/ui.c
+++ b/ui.c
@@ -191,7 +191,7 @@ unsigned int read_numeric(unsigned int initial, unsigned char digit,
         _LOCATE(startx, starty);
         print_numeric_nosupress(val, digit);
        ClrWdt();
-        _LOCATE(startx + d - i, starty);
+        _LOCATE(startx + d -  i, starty);
        _CURSOR_ON();
 
        do {