diff --git a/supervisor/shared/workflow.c b/supervisor/shared/workflow.c index 7370e34e86007..09ed8ab222647 100644 --- a/supervisor/shared/workflow.c +++ b/supervisor/shared/workflow.c @@ -45,7 +45,7 @@ void supervisor_workflow_reset(void) { bool result = supervisor_start_web_workflow(); if (result) { if (!workflow_background_cb.fun) { - memset(&workflow_background_cb, 0, sizeof(workflow_background_cb)); + // Enable background callbacks if web_workflow startup successful. workflow_background_cb.fun = supervisor_web_workflow_background; } supervisor_workflow_request_background(); @@ -108,7 +108,6 @@ void supervisor_workflow_start(void) { #if CIRCUITPY_WEB_WORKFLOW if (supervisor_start_web_workflow()) { // Enable background callbacks if web_workflow startup successful. - memset(&workflow_background_cb, 0, sizeof(workflow_background_cb)); workflow_background_cb.fun = supervisor_web_workflow_background; // Kick the first background run now that the callback is installed. supervisor_workflow_request_background();