Improve furi_hal_serial API

This commit is contained in:
Georgii Surkov
2024-02-07 21:13:38 +03:00
parent fee6f12684
commit c489c956e7
6 changed files with 40 additions and 6 deletions

View File

@@ -189,6 +189,12 @@ bool rpc_pb_stream_read(pb_istream_t* istream, pb_byte_t* buf, size_t count) {
furi_assert(session);
furi_assert(istream->bytes_left);
/* TODO FL-3768 this function may be called after
marking the worker for termination */
if(session->terminate) {
return false;
}
uint32_t flags = 0;
size_t bytes_received = 0;