sm1000_main: Announce warn period not timeout period.
authorsjlongland <sjlongland@01035d8c-6547-0410-b346-abe4f91aad63>
Sat, 24 Oct 2015 23:13:13 +0000 (23:13 +0000)
committersjlongland <sjlongland@01035d8c-6547-0410-b346-abe4f91aad63>
Sat, 24 Oct 2015 23:13:13 +0000 (23:13 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@2472 01035d8c-6547-0410-b346-abe4f91aad63

codec2-dev/stm32/src/sm1000_main.c

index 9f5c7cf3dbbcf4ff78782ce89fe2662c153c9cb8..93da72d8c255dbfaa37f7283d5c37663b30f7c7e 100644 (file)
@@ -1030,7 +1030,7 @@ static void menu_tot_warn_cb(struct menu_t* const menu, uint32_t event)
     if (announce) {
         /* Render the text, thankfully we don't need re-entrancy */
         static char period[5];
-        snprintf(period, 4, "%d", prefs.tot_period);
+        snprintf(period, 4, "%d", prefs.tot_warn_period);
         /* Announce the period */
         morse_play(&morse_player, period);
     }