소스 검색

upd for thread_stdout_callback

MX 1 년 전
부모
커밋
72fcd3cc6a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      upython.c

+ 2 - 2
upython.c

@@ -41,7 +41,7 @@ int32_t upython(void* args) {
         case ActionRepl:
             break;
         case ActionExec:
-            furi_thread_set_stdout_callback(stdout_callback);
+            furi_thread_set_stdout_callback(stdout_callback, NULL);
 
             upython_file_execute(file_path);
 
@@ -49,7 +49,7 @@ int32_t upython(void* args) {
 
             action = ActionNone;
 
-            furi_thread_set_stdout_callback(stdout_callback = NULL);
+            furi_thread_set_stdout_callback(stdout_callback = NULL, NULL);
 
             break;
         case ActionExit: