시리얼 한글 추가

This commit is contained in:
2026-03-29 18:43:01 +00:00
parent 961680e5ec
commit 1b76f83e3b

View File

@@ -198,8 +198,9 @@ void serialRxTask(void *param) {
if (linePos > 0) flushLineToQueues(lineBuf, linePos);
continue;
}
// Only accept printable ASCII (0x20~0x7E) and TAB (0x09)
if ((c >= 0x20 && c <= 0x7E) || c == '\t') {
// Accept printable ASCII + UTF-8 multibyte (한글 등)
// Skip only control chars (0x00~0x1F) except TAB
if (c >= 0x20 || c == '\t') {
lineBuf[linePos++] = c;
}
}