Skip to content

Commit 5bd629a

Browse files
committed
HACK: change mp_hal_stdout_tx_strn() to reporduce bug
This makes the function block forever without doing anything (other than calling MICROPY_EVENT_POLL_HOOK in a loop.)
1 parent 205788d commit 5bd629a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bricks/_common_stm32/mphalport.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ int mp_hal_stdin_rx_chr(void) {
130130
void mp_hal_stdout_tx_strn(const char *str, mp_uint_t len) {
131131
while (len) {
132132
uint32_t size = len;
133-
pbio_error_t err = pbsys_bluetooth_tx((const uint8_t *)str, &size);
133+
// pbio_error_t err = pbsys_bluetooth_tx((const uint8_t *)str, &size);
134+
pbio_error_t err = PBIO_ERROR_AGAIN;
134135

135136
if (err == PBIO_SUCCESS) {
136137
str += size;

0 commit comments

Comments
 (0)