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:
authorDavid Crocker <dcrocker@eschertech.com>2016-04-10 23:50:16 +0300
committerDavid Crocker <dcrocker@eschertech.com>2016-04-10 23:50:16 +0300
commitf3a1b62c0aad2f61efc5e924225251f589c3f628 (patch)
treeb21dd7b3b78d8ae721c40bc6f676d4eafaeea72d /src/PrintMonitor.cpp
parent0c2dc85853d455ef998274a4b343d9cf4c9b9b2b (diff)
Version 1.11-beta1
Changed to CoreNG Implemented chrishamm's latest Network and Webserver changes, including Telnet streaming Added S parameter to M997 command for DuetNG Increased file read block size to 2K when getting file info
Diffstat (limited to 'src/PrintMonitor.cpp')
-rw-r--r--src/PrintMonitor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PrintMonitor.cpp b/src/PrintMonitor.cpp
index d1caa5d5..6771a690 100644
--- a/src/PrintMonitor.cpp
+++ b/src/PrintMonitor.cpp
@@ -344,7 +344,7 @@ bool PrintMonitor::GetFileInfo(const char *directory, const char *fileName, GCod
{
bool headerInfoComplete = true;
- // Read a chunk from the header. On the first run only process 1024 bytes, but use overlap (total 1124 bytes) next times.
+ // Read a chunk from the header. On the first run only process GCODE_READ_SIZE bytes, but use overlap next times.
sizeToRead = (size_t)min<FilePosition>(fileBeingParsed->Length() - fileBeingParsed->Position(), GCODE_READ_SIZE);
if (fileOverlapLength > 0)
{
@@ -482,7 +482,7 @@ bool PrintMonitor::GetFileInfo(const char *directory, const char *fileName, GCod
accumulatedReadTime = accumulatedParseTime = 0.0;
}
- // Go to the last sector and proceed from there on
+ // Go to the last chunk and proceed from there on
const FilePosition seekFromEnd = ((fileBeingParsed->Length() - 1) % GCODE_READ_SIZE) + 1;
fileBeingParsed->Seek(fileBeingParsed->Length() - seekFromEnd);
fileOverlapLength = 0;