Explorar o código

Fixes for various apps. swd_probe: untested

hedger %!s(int64=2) %!d(string=hai) anos
pai
achega
af60bd27aa
Modificáronse 1 ficheiros con 4 adicións e 5 borrados
  1. 4 5
      stm32_sam.cpp

+ 4 - 5
stm32_sam.cpp

@@ -5400,15 +5400,14 @@ void STM32SAM::sam(
         }
     }
 
+    if(i < 256) {
+        input[i] = phonetic ? '\x9b' : '[';
+    }
+
     if(!phonetic) {
-        strncat(input, "[", 256);
         if(!TextToPhonemes((unsigned char*)input)) {
-            // PrintUsage();
             return;
         }
-
-    } else {
-        strncat(input, "\x9b", 256);
     }
 
     SetInput(input);