Przeglądaj źródła

Fixes for gcc12

Thanks @Willy-JL !
for fixing 13 apps in this commit,
other apps fixed by me
MX 1 rok temu
rodzic
commit
5c6384e1c8
2 zmienionych plików z 3 dodań i 3 usunięć
  1. 1 1
      application.fam
  2. 2 2
      stm32_sam.cpp

+ 1 - 1
application.fam

@@ -16,6 +16,6 @@ App(
     order=20,
     fap_author="@Round-Pi & (Fixes by @Willy-JL)",
     fap_weburl="https://github.com/Round-Pi/flipperzero-text2sam",
-    fap_version="1.2",
+    fap_version="1.3",
     fap_description="Convert text to speech on your Flipper Zero with SAM (Software Automatic Mouth).",
 )

+ 2 - 2
stm32_sam.cpp

@@ -4510,7 +4510,7 @@ void STM32SAM::AdjustLengths() {
                 mem56 = flags[index];
 
             // not a consonant
-            if((flags[index] & 64) == 0) {
+            if((mem56 & 64) == 0) {
                 // RX or LX?
                 if((index == 18) || (index == 19)) // 'RX' & 'LX'
                 {
@@ -4519,7 +4519,7 @@ void STM32SAM::AdjustLengths() {
                     index = phonemeindex[X];
 
                     // next phoneme a consonant?
-                    if((flags[index] & 64) != 0) {
+                    if((mem56 & 64) != 0) {
                         // RULE: <VOWEL> RX | LX <CONSONANT>
 
                         // decrease length of vowel by 1 frame