Skip to content

Commit

Permalink
Merge pull request #59 from enkiller/master
Browse files Browse the repository at this point in the history
【修复】当 char 有符号时,判断始终成立的问题
  • Loading branch information
armink authored Feb 15, 2019
2 parents c08ec1a + 4aeb0ab commit b8ed792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion port/mphalport.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ int mp_hal_stdin_rx_chr(void) {
char ch;
while (1) {
ch = rtt_getchar();
if (ch != 0xFF) {
if (ch != (char)0xFF) {
break;
}
MICROPY_EVENT_POLL_HOOK;
Expand Down

0 comments on commit b8ed792

Please sign in to comment.