summaryrefslogtreecommitdiff
path: root/supervisor/shared/workflow.c
diff options
context:
space:
mode:
Diffstat (limited to 'supervisor/shared/workflow.c')
-rw-r--r--supervisor/shared/workflow.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/supervisor/shared/workflow.c b/supervisor/shared/workflow.c
index cd19d3aa2..41af22eb7 100644
--- a/supervisor/shared/workflow.c
+++ b/supervisor/shared/workflow.c
@@ -25,10 +25,10 @@
*/
#include <stdbool.h>
-
-// Set by the shared USB code.
-volatile bool _workflow_active;
+#include "tusb.h"
bool supervisor_workflow_active(void) {
- return _workflow_active;
+ // Eventually there might be other non-USB workflows, such as BLE.
+ // tud_ready() checks for usb mounted and not suspended.
+ return tud_ready();
}