Skip to content

Commit

Permalink
proper stdout fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Dec 23, 2024
1 parent 2d37736 commit c450eaa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion non_catalog_apps/cli_bridge/cli_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ static void tx_handler(const uint8_t* buffer, size_t size) {
furi_stream_buffer_send(cli_tx_stream, buffer, size, FuriWaitForever);
}

static void tx_handler_stdout(const char* buffer, size_t size) {
static void tx_handler_stdout(const char* buffer, size_t size, void* context) {
UNUSED(context);
tx_handler((const uint8_t*)buffer, size);
}

Expand Down
3 changes: 2 additions & 1 deletion non_catalog_apps/mp_flipper/upython.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ volatile Action action = ActionNone;
FuriString* file_path = NULL;
volatile FuriThreadStdoutWriteCallback stdout_callback = NULL;

static void write_to_log_output(const char* data, size_t size) {
static void write_to_log_output(const char* data, size_t size, void* context) {
UNUSED(context);
furi_log_tx((const uint8_t*)data, size);
}

Expand Down
3 changes: 2 additions & 1 deletion non_catalog_apps/mp_flipper/upython_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

static FuriStreamBuffer* stdout_buffer = NULL;

static void write_to_stdout_buffer(const char* data, size_t size) {
static void write_to_stdout_buffer(const char* data, size_t size, void* context) {
UNUSED(context);
furi_stream_buffer_send(stdout_buffer, data, size, 0);
}

Expand Down

0 comments on commit c450eaa

Please sign in to comment.