Skip to content

Commit b8ed792

Browse files
authored
Merge pull request #59 from enkiller/master
【修复】当 char 有符号时,判断始终成立的问题
2 parents c08ec1a + 4aeb0ab commit b8ed792

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)