diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-11-19 02:13:51 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2022-11-19 02:13:51 -0500 |
commit | 3b1230b36592c1f16c8ceb101e7dc1cf263bd260 (patch) | |
tree | cff25400725bdb1e19f4d103ec6427e6d814499c /apps/talk.c | |
parent | b0ccb1b95fa703e13eccec3fe873dde28e0176e9 (diff) | |
download | rockbox-3b1230b36592c1f16c8ceb101e7dc1cf263bd260.tar.gz rockbox-3b1230b36592c1f16c8ceb101e7dc1cf263bd260.zip |
talk.c add busy loop to talk_spell
talk spell can lose the remainder of the words on longer sequences
Change-Id: I5f8f0f42d780ea9d1f00d99ff32746be34c27745
Diffstat (limited to 'apps/talk.c')
-rw-r--r-- | apps/talk.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) | |||
776 | talk_id(VOICE_PAUSE, true); | 776 | talk_id(VOICE_PAUSE, true); |
777 | else if (c == '/') | 777 | else if (c == '/') |
778 | talk_id(VOICE_CHAR_SLASH, true); | 778 | talk_id(VOICE_CHAR_SLASH, true); |
779 | |||
780 | while (QUEUE_LEVEL == QUEUE_SIZE - 1) /* queue full - busy loop */ | ||
781 | yield(); | ||
779 | } | 782 | } |
780 | return 0; | 783 | return 0; |
781 | } | 784 | } |