From f9cc4ec61b31b0210c9c42ce570a70daa983705a Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Tue, 26 Jul 2022 11:51:10 -0700 Subject: [PATCH] Fix print chunk --- supervisor/shared/web_workflow/web_workflow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervisor/shared/web_workflow/web_workflow.c b/supervisor/shared/web_workflow/web_workflow.c index e641bb8605..5225cfe13e 100644 --- a/supervisor/shared/web_workflow/web_workflow.c +++ b/supervisor/shared/web_workflow/web_workflow.c @@ -335,7 +335,7 @@ static void _send_chunk(socketpool_socket_obj_t *socket, const char *chunk) { } STATIC void _print_chunk(void *env, const char *str, size_t len) { - mp_print_t _socket_print = {socket, _print_raw}; + mp_print_t _socket_print = {env, _print_raw}; mp_printf(&_socket_print, "%X\r\n", len); _send_raw((socketpool_socket_obj_t *)env, (const uint8_t *)str, len); _send_raw((socketpool_socket_obj_t *)env, (const uint8_t *)"\r\n", 2);