From dcf8154c3244e1f41c62abdfec02169e7f14cd47 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Fri, 22 May 2020 07:52:01 -0500 Subject: talk.h add failed to load splash Change-Id: Ie355a52bb6c687d302dc3e39693b9ab40e2dd699 --- apps/talk.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/talk.c') diff --git a/apps/talk.c b/apps/talk.c index b561d5cde8..ec0ba67f38 100644 --- a/apps/talk.c +++ b/apps/talk.c @@ -31,6 +31,7 @@ #include "kernel.h" #include "settings.h" #include "settings_list.h" +#include "splash.h" #if CONFIG_CODEC == SWCODEC #include "voice_thread.h" #else @@ -937,8 +938,10 @@ void talk_init(void) if (filehandle > 0) { if (!load_voicefile_index(filehandle)) + { + splashf(HZ * 2, str(LANG_READ_FAILED), ".voice"); goto out; - + } /* Now determine the maximum buffer size needed for the voicefile. * The below pretends the entire voicefile would be loaded. The buffer * size is eventually capped later on in load_voicefile_data() */ -- cgit