diff options
author | David Crocker <dcrocker@eschertech.com> | 2017-12-13 22:34:01 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2017-12-13 22:34:30 +0300 |
commit | 229508f86623a9969967e1c2bd649858cef65fdd (patch) | |
tree | 6ff6999e9e6733c45436733982b366310c5344cf /src/Storage/FileWriteBuffer.h | |
parent | ffb6d27e1af0a7bddab84277eef97b836a6ed508 (diff) |
Version 1.20RC1
New features:
- Heater PWM frequencies are limited to 1kHz to protect
the heater mosfets
- Tool offsets and fan mapping are now passed to
DWC
- More free memory is available, especially in the Duet 0.6/0.8.5
build
- Maximum bed heaters increased to 4 for the Duet WiFi/Ethernet
-
The software reset data now records the date/time of the reset if known
and a longer stack trace
- The maximum length of GCode commands has been
increased, in particular to allow long passwords in M587 commands
Bug
fixes:
- Fixed M28/M29 file upload
- Fixed some USB/Telnet response
formats when in Marlin emulation mode
- Fixed move timing when a long
slow printing move follows a faster printing move
- Heater tuning was
not possible in 1.20RC1
- If a file being printed executed a macro right
at the start, DWC could assume that the print had already finished
(thanks chrishamm)
Diffstat (limited to 'src/Storage/FileWriteBuffer.h')
-rw-r--r-- | src/Storage/FileWriteBuffer.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/Storage/FileWriteBuffer.h b/src/Storage/FileWriteBuffer.h index c7a04116..d5198e8c 100644 --- a/src/Storage/FileWriteBuffer.h +++ b/src/Storage/FileWriteBuffer.h @@ -10,7 +10,6 @@ #include "RepRapFirmware.h" - #if SAM4E || SAM4S || SAME70 const size_t NumFileWriteBuffers = 2; // Number of write buffers const size_t FileWriteBufLen = 8192; // Size of each write buffer @@ -19,7 +18,6 @@ const size_t NumFileWriteBuffers = 1; const size_t FileWriteBufLen = 4096; #endif - // Class to cache data that is about to be written to the SD card. This is NOT a ring buffer, // instead it just provides simple interfaces to cache a certain amount of data so that fewer // f_write() calls are needed. This effectively improves upload speeds. @@ -36,14 +34,14 @@ public: const size_t BytesStored() const { return index; } const size_t BytesLeft() const { return FileWriteBufLen - index; } - size_t Store(const char *data, size_t length); // Stores some data and returns how much could be stored - void DataTaken() { index = 0; } // Called to indicate that the buffer has been written + size_t Store(const char *data, size_t length); // Stores some data and returns how much could be stored + void DataTaken() { index = 0; } // Called to indicate that the buffer has been written private: FileWriteBuffer *next; size_t index; - int32_t data32[FileWriteBufLen / sizeof(int32_t)]; // 32-bit aligned buffer for better HSMCI performance + uint32_t data32[FileWriteBufLen / sizeof(uint32_t)]; // 32-bit aligned buffer for better HSMCI performance }; inline size_t FileWriteBuffer::Store(const char *data, size_t length) |