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-05-27 23:06:57 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-05-27 23:06:57 +0300
commitabb62a3aee28addfce053d6f0d9c82d85160c595 (patch)
treee3cfb1698c0262ec52a2b9c9a2ed3015dfe7e72b /src/Storage/FileInfoParser.h
parent4082db3e809db86a06cb9d807f21cf1d377bc948 (diff)
Various
Bug fix: fix filament needed array overflow when then GCode file contains a filament used comment line with too many values Adjust the number of stepper drivers on Duet 2 if a 12864 display is configured Changed step pulse code to not use paralell write because those are not available on the 5LC board (or on LPC-based boards) Changed 12864 LCD pin allocations for Duet NG Removed calls to SafeStrtoul from BinaryParser and IoPorts
Diffstat (limited to 'src/Storage/FileInfoParser.h')
-rw-r--r--src/Storage/FileInfoParser.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Storage/FileInfoParser.h b/src/Storage/FileInfoParser.h
index dcaf16e9..330340aa 100644
--- a/src/Storage/FileInfoParser.h
+++ b/src/Storage/FileInfoParser.h
@@ -44,7 +44,7 @@ class FileInfoParser
public:
FileInfoParser() noexcept;
- // The following method needs to be called until it returns true - this may take a few runs
+ // The following method needs to be called repeatedly until it returns true - this may take a few runs
bool GetFileInfo(const char *filePath, GCodeFileInfo& info, bool quitEarly) noexcept;
static constexpr const char* SimulatedTimeString = "\n; Simulated print time"; // used by FileInfoParser and MassStorage
@@ -75,7 +75,7 @@ private:
// We used to allocate the following buffer on the stack; but now that this is called by more than one task
// it is more economical to allocate it permanently because that lets us use smaller stacks.
// Alternatively, we could allocate a FileBuffer temporarily.
- uint32_t buf32[(GCODE_READ_SIZE + GCODE_OVERLAP_SIZE + 3)/4 + 1]; // buffer must be 32-bit aligned for HSMCI. We need the +1 so we can add a null terminator.
+ alignas(4) char buf[GCODE_READ_SIZE + GCODE_OVERLAP_SIZE + 1]; // buffer must be 32-bit aligned for HSMCI. We need the +1 so we can add a null terminator.
};
#endif