sm1000_main: Fix logic error exiting 'VOL'
authorsjlongland <sjlongland@01035d8c-6547-0410-b346-abe4f91aad63>
Sat, 26 Sep 2015 00:05:55 +0000 (00:05 +0000)
committersjlongland <sjlongland@01035d8c-6547-0410-b346-abe4f91aad63>
Sat, 26 Sep 2015 00:05:55 +0000 (00:05 +0000)
Seems we were setting the dit time on the morse player instead of
restoring the old volume setting.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2386 01035d8c-6547-0410-b346-abe4f91aad63

codec2-dev/stm32/src/sm1000_main.c

index f196dfec969064753ca7550f0e67968a32f90599..a51828a31a8c1c0046189565a77a8ade08448ebe 100644 (file)
@@ -758,7 +758,7 @@ static void menu_ui_vol_cb(struct menu_t* const menu, uint32_t event)
             /* Restore the mode and exit the menu */
             sfx_play(&sfx_player, sound_returned);
         case MENU_EVT_EXIT:
-            morse_player.dit_time = menu->current;
+            prefs.menu_vol = menu->current;
             menu_leave(menu);
             break;
         default: