From b6f9c333d441a1f7ebbd5a62c3bd409644ce8f6a Mon Sep 17 00:00:00 2001 From: etagle Date: Thu, 21 Dec 2017 02:22:08 -0300 Subject: [PATCH] Adding hooks into the idle loop so HALs can execute 2nd plane tasks, such as serving SD card read/writes requested from the USB MSD layer --- Marlin/src/Marlin.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Marlin/src/Marlin.cpp b/Marlin/src/Marlin.cpp index 8afecbc279..05fa8136b8 100644 --- a/Marlin/src/Marlin.cpp +++ b/Marlin/src/Marlin.cpp @@ -548,6 +548,10 @@ void idle( lastUpdateMillis = millis(); } #endif + + #ifdef HAL_IDLETASK + HAL_idletask(); + #endif } /**