From 7bb41ff7c94a6a034c07d4031fceb0c25e6f59d3 Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Tue, 22 Nov 2022 18:25:40 +1100 Subject: [PATCH] Create GUIDelay.cpp --- source/Core/Threads/OperatingModes/utils/GUIDelay.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 source/Core/Threads/OperatingModes/utils/GUIDelay.cpp diff --git a/source/Core/Threads/OperatingModes/utils/GUIDelay.cpp b/source/Core/Threads/OperatingModes/utils/GUIDelay.cpp new file mode 100644 index 00000000..4a5840bf --- /dev/null +++ b/source/Core/Threads/OperatingModes/utils/GUIDelay.cpp @@ -0,0 +1,10 @@ + +#include "OperatingModeUtilities.h" + +void GUIDelay() { + // Called in all UI looping tasks, + // This limits the re-draw rate to the LCD and also lets the DMA run + // As the gui task can very easily fill this bus with transactions, which will + // prevent the movement detection from running + vTaskDelay(5 * TICKS_10MS); +} \ No newline at end of file