ldursw
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
1 deletions
-
Marlin/src/feature/binary_stream.h
|
|
@ -39,7 +39,12 @@ inline int bs_read_serial(const serial_index_t index) { |
|
|
|
|
|
|
|
#if ENABLED(BINARY_STREAM_COMPRESSION) |
|
|
|
static heatshrink_decoder hsd; |
|
|
|
static uint8_t decode_buffer[512] = {}; |
|
|
|
#ifdef BOTH(ARDUINO_ARCH_STM32F1, SDIO_SUPPORT) |
|
|
|
// STM32 requires a word-aligned buffer for SD card transfers via DMA
|
|
|
|
static __attribute__((aligned(sizeof(size_t)))) uint8_t decode_buffer[512] = {}; |
|
|
|
#else |
|
|
|
static uint8_t decode_buffer[512] = {}; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
class SDFileTransferProtocol { |
|
|
|