From: sjlongland Date: Sat, 26 Sep 2015 00:05:50 +0000 (+0000) Subject: sm1000_main: Fix announcement of volume level X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=14df8b1156dcc123de150b6ef530671c73e4eb51;p=freetel-svn-tracking.git sm1000_main: Fix announcement of volume level git-svn-id: https://svn.code.sf.net/p/freetel/code@2384 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/codec2-dev/stm32/src/sm1000_main.c b/codec2-dev/stm32/src/sm1000_main.c index 4c67dc63..f1209bcd 100644 --- a/codec2-dev/stm32/src/sm1000_main.c +++ b/codec2-dev/stm32/src/sm1000_main.c @@ -351,7 +351,7 @@ int main(void) { nin = freedv_nin(f); nout = nin; - freedv_set_total_bit_errors(f, 0); + freedv_set_total_bit_errors(f, 0); if (adc1_read(&adc16k[FDMDV_OS_TAPS_16K], 2*nin) == 0) { GPIOE->ODR = (1 << 3); fdmdv_16_to_8_short(adc8k, &adc16k[FDMDV_OS_TAPS_16K], nin); @@ -768,7 +768,7 @@ static void menu_ui_vol_cb(struct menu_t* const menu, uint32_t event) if (announce) { /* Render the text, thankfully we don't need re-entrancy */ static char vol[3]; - snprintf(vol, 2, "%d", 15 - prefs.menu_vol); + snprintf(vol, 3, "%d", 15 - prefs.menu_vol); /* Announce the volume level */ morse_play(&morse_player, vol); }