From 3b1230b36592c1f16c8ceb101e7dc1cf263bd260 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sat, 19 Nov 2022 02:13:51 -0500 Subject: talk.c add busy loop to talk_spell talk spell can lose the remainder of the words on longer sequences Change-Id: I5f8f0f42d780ea9d1f00d99ff32746be34c27745 --- apps/talk.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/talk.c b/apps/talk.c index 37a4482556..8507a89541 100644 --- a/apps/talk.c +++ b/apps/talk.c @@ -776,6 +776,9 @@ static int _talk_spell(const char* spell, size_t len, bool enqueue) talk_id(VOICE_PAUSE, true); else if (c == '/') talk_id(VOICE_CHAR_SLASH, true); + + while (QUEUE_LEVEL == QUEUE_SIZE - 1) /* queue full - busy loop */ + yield(); } return 0; } -- cgit v1.2.3