From 9a5fb44c76f56d86dffc7f60a88df68eb8994159 Mon Sep 17 00:00:00 2001 From: Artyom Skrobov Date: Sat, 1 May 2021 13:25:35 -0400 Subject: [PATCH] `workflow_active` was never defined or used `supervisor_workflow_active` needs to be stubbed for when there's no USB --- supervisor/shared/workflow.h | 1 - supervisor/stub/serial.c | 4 ++++ supervisor/workflow.h | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/supervisor/shared/workflow.h b/supervisor/shared/workflow.h index 2596dd2c45..b3c817fb8b 100644 --- a/supervisor/shared/workflow.h +++ b/supervisor/shared/workflow.h @@ -27,4 +27,3 @@ #pragma once extern bool supervisor_workflow_connecting(void); -extern bool supervisor_workflow_active(void); diff --git a/supervisor/stub/serial.c b/supervisor/stub/serial.c index 6ca14fcfde..7d00ae1dc3 100644 --- a/supervisor/stub/serial.c +++ b/supervisor/stub/serial.c @@ -53,3 +53,7 @@ void serial_write(const char *text) { void supervisor_workflow_reset(void) { } + +bool supervisor_workflow_active(void) { + return false; +} diff --git a/supervisor/workflow.h b/supervisor/workflow.h index 27d063503a..31900392cd 100755 --- a/supervisor/workflow.h +++ b/supervisor/workflow.h @@ -29,4 +29,4 @@ void supervisor_workflow_reset(void); // True when the user could be actively iterating on their code. -bool workflow_active(void); +bool supervisor_workflow_active(void);