We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39383ba commit 1d76e54Copy full SHA for 1d76e54
firmware/nRF51/tag-proximity/inc/log.h
@@ -34,7 +34,7 @@
34
/* compression */
35
#define FLASH_LOG_COMPRESSION 1
36
#define COMPRESS_CHUNK_SIZE 256
37
-#define BLOCK_SPACE_MIN 256
+#define BLOCK_SPACE_MIN (COMPRESS_CHUNK_SIZE + 32)
38
39
/* flash storage */
40
#define BLOCK_PAGES 8
@@ -65,6 +65,9 @@ typedef struct
65
{
66
TLogBlockEnvelope env;
67
uint8_t data[LOG_BLOCK_DATA_SIZE];
68
+
69
+ /* paranoid: padding in case heatshrink_encoder_poll() overflows the output buffer */
70
+ uint8_t safety[COMPRESS_CHUNK_SIZE];
71
} PACKED TLogBlock;
72
73
0 commit comments