Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hammacher <bmasterc@gmail.com>2020-09-30 23:48:02 +0300
committerChristian Hammacher <bmasterc@gmail.com>2020-09-30 23:48:02 +0300
commit2a4502143c6833a29533c17d9565f3409b2a182b (patch)
treea947a396487a2bb398e2a15f3d070d0048b4724e /src/RepRap.cpp
parentf384f20b193dc1573795a72fea55e5de48466c76 (diff)
More work on the SBC interface
Got complex homing macro running nicely with new Linux task and new DSF version Bug fix: Linux task failed to write IAP binary
Diffstat (limited to 'src/RepRap.cpp')
-rw-r--r--src/RepRap.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/RepRap.cpp b/src/RepRap.cpp
index d39008c6..89079ef9 100644
--- a/src/RepRap.cpp
+++ b/src/RepRap.cpp
@@ -2720,6 +2720,10 @@ void RepRap::PrepareToLoadIap() noexcept
SmartDrivers::Exit(); // stop the drivers being polled via SPI or UART because it may use data in the last 64Kb of RAM
FilamentMonitor::Exit(); // stop the filament monitors generating interrupts, we may be about to overwrite them
fansManager->Exit(); // stop the fan tachos generating interrupts, we may be about to overwrite them
+ if (RTOSIface::GetCurrentTask() != Tasks::GetMainTask())
+ {
+ Tasks::TerminateMainTask(); // stop the main task if IAP is being written from another task
+ }
#ifdef DUET_NG
DuetExpansion::Exit(); // stop the DueX polling task