File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ void websocket_handoff(socketpool_socket_obj_t *socket) {
78
78
}
79
79
80
80
bool websocket_connected (void ) {
81
- return !cp_serial .closed && common_hal_socketpool_socket_get_connected (& cp_serial .socket );
81
+ return _incoming_ringbuf . size > 0 && !cp_serial .closed && common_hal_socketpool_socket_get_connected (& cp_serial .socket );
82
82
}
83
83
84
84
static bool _read_byte (uint8_t * c ) {
Original file line number Diff line number Diff line change 48
48
#endif
49
49
static background_callback_t workflow_background_cb ;
50
50
51
+ static bool workflow_started = false;
52
+
51
53
static void workflow_background (void * data ) {
52
54
#if CIRCUITPY_WEB_WORKFLOW
53
55
supervisor_web_workflow_background ();
@@ -70,6 +72,9 @@ void supervisor_workflow_reset(void) {
70
72
}
71
73
72
74
void supervisor_workflow_request_background (void ) {
75
+ if (!workflow_started ) {
76
+ return ;
77
+ }
73
78
background_callback_add_core (& workflow_background_cb );
74
79
}
75
80
@@ -116,6 +121,8 @@ void supervisor_workflow_start(void) {
116
121
#if CIRCUITPY_WEB_WORKFLOW
117
122
supervisor_start_web_workflow ();
118
123
#endif
124
+
125
+ workflow_started = true;
119
126
}
120
127
121
128
FRESULT supervisor_workflow_mkdir_parents (FATFS * fs , char * path ) {
You can’t perform that action at this time.
0 commit comments