diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2019-02-06 13:18:22 -0500 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2019-07-20 20:42:02 +0200 |
commit | 78892b5eb0195299d1a3ee2db2fb830d636d10e3 (patch) | |
tree | f1b67460272c40a346713f179d47231c538482ff /apps/plugins | |
parent | 4edaf3fb9853b3eb140196ac5e4d6ed3a34eb4ba (diff) |
FS#7705: Voice enable battery bench plugin
Original patch by Daniel Dalton
Updated by Igor Poretsky
Change-Id: I40d3bb89dbaf3582e1d7af8e8964205507cd2a8d
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/battery_bench.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/plugins/battery_bench.c b/apps/plugins/battery_bench.c index 13f01d7867..21b2ce4963 100644 --- a/apps/plugins/battery_bench.c +++ b/apps/plugins/battery_bench.c @@ -22,6 +22,7 @@ #include "version.h" #include "plugin.h" +#include "lang_enum.h" #define BATTERY_LOG HOME_DIR"/battery_bench.txt" @@ -348,6 +349,8 @@ static bool exit_tsr(bool reenter) #ifdef HAVE_LCD_BITMAP rb->lcd_puts_scroll(0, 2, "Anything else will resume"); #endif + if(rb->global_settings->talk_menu) + rb->talk_id(VOICE_BATTERY_BENCH_IS_ALREADY_RUNNING, true); rb->lcd_update(); while (1) @@ -564,6 +567,8 @@ enum plugin_status plugin_start(const void* parameter) rb->lcd_puts_scroll(0, 0, "Batt.Bench."); rb->lcd_puts_scroll(0, 1, "PLAY/STOP"); #endif + if(rb->global_settings->talk_menu) + rb->talk_id(VOICE_BAT_BENCH_KEYS, true); rb->lcd_update(); #ifdef HAVE_REMOTE_LCD |