Skip to content

Commit

Permalink
fix: event loop not triggering when pipe attached to stdio
Browse files Browse the repository at this point in the history
  • Loading branch information
portasynthinca3 committed Nov 13, 2024
1 parent af7ff81 commit 857ad33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions furi/core/pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ void furi_pipe_free(FuriPipeSide* pipe) {
static void _furi_pipe_stdout_cb(const char* data, size_t size, void* context) {
furi_assert(context);
FuriPipeSide* pipe = context;
furi_check(furi_stream_buffer_send(pipe->sending, data, size, FuriWaitForever) == size);
furi_check(furi_pipe_send(pipe, data, size, FuriWaitForever) == size);
}

static size_t _furi_pipe_stdin_cb(char* data, size_t size, FuriWait timeout, void* context) {
furi_assert(context);
FuriPipeSide* pipe = context;
return furi_stream_buffer_receive(pipe->sending, data, size, timeout);
return furi_pipe_receive(pipe, data, size, timeout);
}

void furi_pipe_install_as_stdio(FuriPipeSide* pipe) {
Expand Down

0 comments on commit 857ad33

Please sign in to comment.