Skip to content

Commit

Permalink
HACK: change mp_hal_stdout_tx_strn() to reporduce bug
Browse files Browse the repository at this point in the history
This makes the function block forever without doing anything (other
than calling MICROPY_EVENT_POLL_HOOK in a loop.)
  • Loading branch information
dlech committed Jan 19, 2025
1 parent 205788d commit 5bd629a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bricks/_common_stm32/mphalport.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ int mp_hal_stdin_rx_chr(void) {
void mp_hal_stdout_tx_strn(const char *str, mp_uint_t len) {
while (len) {
uint32_t size = len;
pbio_error_t err = pbsys_bluetooth_tx((const uint8_t *)str, &size);
// pbio_error_t err = pbsys_bluetooth_tx((const uint8_t *)str, &size);
pbio_error_t err = PBIO_ERROR_AGAIN;

if (err == PBIO_SUCCESS) {
str += size;
Expand Down

0 comments on commit 5bd629a

Please sign in to comment.