Browse Source

Fixes for various apps. swd_probe: untested

hedger 2 năm trước cách đây
mục cha
commit
af60bd27aa
1 tập tin đã thay đổi với 4 bổ sung5 xóa
  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);