From b64a286a81fcb2706eada010ffe4b561b473889e Mon Sep 17 00:00:00 2001 From: Peter Sealy Date: Sat, 18 Feb 2017 23:39:48 +0100 Subject: voice file not loading > > I ran into an issue where my voice file would only load if I changed language while playing music. It seems to happen because when no other file is open, file.c alloc_filestr returns the first free handle which is 0. In talk.c this is treated as an invalid handle, so the voice file is not loaded. Change-Id: I42db40b10cc7a900bdd72012d99265300e783e44 --- apps/talk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/talk.c b/apps/talk.c index ec0ba67f38..35c2a477fc 100644 --- a/apps/talk.c +++ b/apps/talk.c @@ -935,7 +935,7 @@ void talk_init(void) * and so we can re-use it if it's already allocated in any event */ filehandle = open_voicefile(); - if (filehandle > 0) + if (filehandle > -1) { if (!load_voicefile_index(filehandle)) { -- cgit v1.2.3