Skip to content

Commit ab8cff4

Browse files
committed
codal_port/mpconfigport.h: Enable MICROPY_STREAMS_NON_BLOCK config.
To get the correct behaviour for (eg) UART reads when no data is available. Signed-off-by: Damien George <[email protected]>
1 parent 8e5eda1 commit ab8cff4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/codal_port/mpconfigport.h

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
5858
#define MICROPY_ENABLE_SOURCE_LINE (1)
5959
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
60+
#define MICROPY_STREAMS_NON_BLOCK (1)
6061
#define MICROPY_MODULE_BUILTIN_INIT (1)
6162
#define MICROPY_MODULE_WEAK_LINKS (1)
6263
#define MICROPY_MODULE_FROZEN_MPY (1)

0 commit comments

Comments
 (0)