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>2020-01-12 00:31:56 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-01-12 00:31:56 +0300
commitce146c5bc3437aad903a2efd1b79a70a45821456 (patch)
treeb77d5f9b0ffb9fbf54edeeaf3211f08afeb284d4 /src/Storage/FileInfoParser.h
parent0a4abc45d3964674aa580b452bfbb676cf8bf4a6 (diff)
Saved another 1Kb of RAM on Duet 2 build
Reduced file read buffer size in class FileInforParser from 2kb to 1Kb
Diffstat (limited to 'src/Storage/FileInfoParser.h')
-rw-r--r--src/Storage/FileInfoParser.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Storage/FileInfoParser.h b/src/Storage/FileInfoParser.h
index 4c2e6eb4..dcaf16e9 100644
--- a/src/Storage/FileInfoParser.h
+++ b/src/Storage/FileInfoParser.h
@@ -18,7 +18,7 @@
const FilePosition GCODE_HEADER_SIZE = 20000uL; // How many bytes to read from the header - I (DC) have a Kisslicer file with a layer height comment 14Kb from the start
const FilePosition GCODE_FOOTER_SIZE = 400000uL; // How many bytes to read from the footer
-#if SAM4E || SAM4S || SAME70
+#if SAME70
const size_t GCODE_READ_SIZE = 2048; // How many bytes to read in one go in GetFileInfo() (should be a multiple of 512 for read efficiency)
#else
const size_t GCODE_READ_SIZE = 1024; // How many bytes to read in one go in GetFileInfo() (should be a multiple of 512 for read efficiency)