diff options
author | David Crocker <dcrocker@eschertech.com> | 2018-04-03 16:26:56 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2018-04-03 16:26:56 +0300 |
commit | 8f3f4431bc6db2405e82883323c64d80d07cdd87 (patch) | |
tree | 28666967f09d7a6756cb7d3feb85ce50b14030a4 /src/RepRap.cpp | |
parent | 7e12acb1d004ea91373d2e90b9aaee584a19d98b (diff) |
Network now a separate task
The Network module is now a separate task
Reduced network buffers from 8 to 6 to free up RAM
FileInfoParser has its own buffer to save allocating them on multiple
stacks
Got rid of longWait and ClassReport
Diffstat (limited to 'src/RepRap.cpp')
-rw-r--r-- | src/RepRap.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/RepRap.cpp b/src/RepRap.cpp index 26914adb..eda3e8a1 100644 --- a/src/RepRap.cpp +++ b/src/RepRap.cpp @@ -9,6 +9,7 @@ #include "PrintMonitor.h" #include "Tools/Tool.h" #include "Tools/Filament.h" +#include "Tasks.h" #include "Version.h" #ifdef DUET_NG @@ -237,9 +238,11 @@ void RepRap::Spin() spinningModule = modulePlatform; platform->Spin(); +#ifndef RTOS ticksInSpinState = 0; spinningModule = moduleNetwork; network->Spin(true); +#endif ticksInSpinState = 0; spinningModule = moduleWebserver; @@ -324,6 +327,8 @@ void RepRap::Spin() slowLoop = dt; } lastTime = t; + + RTOSIface::Yield(); } void RepRap::Timing(MessageType mtype) @@ -336,7 +341,7 @@ void RepRap::Timing(MessageType mtype) void RepRap::Diagnostics(MessageType mtype) { platform->Message(mtype, "=== Diagnostics ===\n"); - OutputBuffer::Diagnostics(mtype); + Tasks::Diagnostics(mtype); platform->Diagnostics(mtype); // this includes a call to our Timing() function move->Diagnostics(mtype); heat->Diagnostics(mtype); |