Skip to content

Commit 4aeb0ab

Browse files
committed
【修复】当 char 有符号时,判断始终成立的问题
1 parent c08ec1a commit 4aeb0ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

port/mphalport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ int mp_hal_stdin_rx_chr(void) {
3737
char ch;
3838
while (1) {
3939
ch = rtt_getchar();
40-
if (ch != 0xFF) {
40+
if (ch != (char)0xFF) {
4141
break;
4242
}
4343
MICROPY_EVENT_POLL_HOOK;

0 commit comments

Comments
 (0)