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>2021-11-15 15:14:32 +0300
committerChristian Hammacher <bmasterc@gmail.com>2021-11-15 15:14:32 +0300
commitbe212de630ce67e283d7ab78cda796165e2b7d43 (patch)
tree3756f5d518e6edf0f908f160874a12c58d4e8211 /src/GCodes
parent510b4f4bb221964a829974185bb55972c3141911 (diff)
Made SBC file handling more robust
Diffstat (limited to 'src/GCodes')
-rw-r--r--src/GCodes/GCodeBuffer/GCodeBuffer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GCodes/GCodeBuffer/GCodeBuffer.cpp b/src/GCodes/GCodeBuffer/GCodeBuffer.cpp
index 5ead2442..76437228 100644
--- a/src/GCodes/GCodeBuffer/GCodeBuffer.cpp
+++ b/src/GCodes/GCodeBuffer/GCodeBuffer.cpp
@@ -954,10 +954,10 @@ bool GCodeBuffer::RequestMacroFile(const char *filename, bool fromCode) noexcept
// Wait for a response (but not forever)
isWaitingForMacro = true;
reprap.GetSbcInterface().EventOccurred(true);
- if (!macroSemaphore.Take(SpiMacroRequestTimeout))
+ if (!macroSemaphore.Take(SpiMaxRequestTime))
{
isWaitingForMacro = false;
- reprap.GetPlatform().MessageF(ErrorMessage, "Failed to get macro response within %" PRIu32 "ms from SBC (channel %s)\n", SpiMacroRequestTimeout, GetChannel().ToString());
+ reprap.GetPlatform().MessageF(ErrorMessage, "Timeout while waiting for macro file %s (channel %s)\n", filename, GetChannel().ToString());
return false;
}
}