Fix an off by one error found by TomCh in the speech code which lead to the beginning of the next speech phrase to be played. This is why "excellent" sounded more like "excellent-ay". Worse, it would lead to the 5 bytes after the phrase "incredible" to be treated like speech data and who knows what that did.

Also, bump the version number to 2.6.a1 in preparation for a 2.6 release with these fixes.
This commit is contained in:
Jeremy Rand 2020-05-04 23:07:02 -04:00
parent e21c7375f6
commit bc1cbc975c
3 changed files with 2 additions and 2 deletions

View File

@ -216,7 +216,7 @@ bool mockingBoardSpeak(uint8_t *data, uint16_t dataLen)
return false;
mockingBoardSpeechData = data;
mockingBoardSpeechLen = dataLen + 1;
mockingBoardSpeechLen = dataLen;
mockingBoardSpeakPriv();
return true;

View File

@ -26,7 +26,7 @@
// Defines
#define SAVE_OPTIONS_FILE "A2BEJWLD.OPTS"
#define VERSION "v2.5"
#define VERSION "v2.6.a1"
#define OPTIONS_VERSION_UNSAVED 0
#define OPTIONS_VERSION 2