Skip to content

Commit

Permalink
fix(modem): Fixed UART task to check for buffered data periodically
Browse files Browse the repository at this point in the history
Closes #536
  • Loading branch information
david-cermak committed Mar 26, 2024
1 parent 1476388 commit 4bdd90c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/esp_modem/src/esp_modem_uart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ void UartTerminal::task()
ESP_LOGW(TAG, "unknown uart event type: %d", event.type);
break;
}
} else {
uart_get_buffered_data_len(uart.port, &len);
if (len && on_read) {
on_read(nullptr, len);
}
}
}
}
Expand Down

0 comments on commit 4bdd90c

Please sign in to comment.