We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca485d2 commit 967c076Copy full SHA for 967c076
src/codal_app/mphalport.cpp
@@ -54,12 +54,12 @@ void mp_hal_set_interrupt_char(int c) {
54
55
uintptr_t mp_hal_stdio_poll(uintptr_t poll_flags) {
56
uintptr_t ret = 0;
57
- if (poll_flags && MP_STREAM_POLL_RD) {
+ if (poll_flags & MP_STREAM_POLL_RD) {
58
if (uBit.serial.isReadable()) {
59
ret |= MP_STREAM_POLL_RD;
60
}
61
62
- if (poll_flags && MP_STREAM_POLL_WR) {
+ if (poll_flags & MP_STREAM_POLL_WR) {
63
if (uBit.serial.isWriteable()) {
64
ret |= MP_STREAM_POLL_WR;
65
0 commit comments