FS#7705: Voice enable battery bench plugin
Original patch by Daniel Dalton Updated by Igor Poretsky Change-Id: I40d3bb89dbaf3582e1d7af8e8964205507cd2a8d
This commit is contained in:
parent
4edaf3fb98
commit
78892b5eb0
2 changed files with 33 additions and 0 deletions
|
@ -15098,3 +15098,31 @@
|
||||||
lcd_bitmap: ""
|
lcd_bitmap: ""
|
||||||
</voice>
|
</voice>
|
||||||
</phrase>
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
id: VOICE_BATTERY_BENCH_IS_ALREADY_RUNNING
|
||||||
|
desc: Spoken if battery bench is already running
|
||||||
|
user: core
|
||||||
|
<source>
|
||||||
|
*: ""
|
||||||
|
</source>
|
||||||
|
<dest>
|
||||||
|
*: ""
|
||||||
|
</dest>
|
||||||
|
<voice>
|
||||||
|
*: "Battery bench is already running"
|
||||||
|
</voice>
|
||||||
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
id: VOICE_BAT_BENCH_KEYS
|
||||||
|
desc: Battery bench start up message
|
||||||
|
user: core
|
||||||
|
<source>
|
||||||
|
*: ""
|
||||||
|
</source>
|
||||||
|
<dest>
|
||||||
|
*: ""
|
||||||
|
</dest>
|
||||||
|
<voice>
|
||||||
|
*: "Press play to run battery bench or stop to cancel"
|
||||||
|
</voice>
|
||||||
|
</phrase>
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
#include "plugin.h"
|
#include "plugin.h"
|
||||||
|
#include "lang_enum.h"
|
||||||
|
|
||||||
|
|
||||||
#define BATTERY_LOG HOME_DIR"/battery_bench.txt"
|
#define BATTERY_LOG HOME_DIR"/battery_bench.txt"
|
||||||
|
@ -348,6 +349,8 @@ static bool exit_tsr(bool reenter)
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
rb->lcd_puts_scroll(0, 2, "Anything else will resume");
|
rb->lcd_puts_scroll(0, 2, "Anything else will resume");
|
||||||
#endif
|
#endif
|
||||||
|
if(rb->global_settings->talk_menu)
|
||||||
|
rb->talk_id(VOICE_BATTERY_BENCH_IS_ALREADY_RUNNING, true);
|
||||||
rb->lcd_update();
|
rb->lcd_update();
|
||||||
|
|
||||||
while (1)
|
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, 0, "Batt.Bench.");
|
||||||
rb->lcd_puts_scroll(0, 1, "PLAY/STOP");
|
rb->lcd_puts_scroll(0, 1, "PLAY/STOP");
|
||||||
#endif
|
#endif
|
||||||
|
if(rb->global_settings->talk_menu)
|
||||||
|
rb->talk_id(VOICE_BAT_BENCH_KEYS, true);
|
||||||
rb->lcd_update();
|
rb->lcd_update();
|
||||||
|
|
||||||
#ifdef HAVE_REMOTE_LCD
|
#ifdef HAVE_REMOTE_LCD
|
||||||
|
|
Loading…
Reference in a new issue