diff options
Diffstat (limited to 'flash.c')
-rw-r--r-- | flash.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -252,7 +252,8 @@ bool persistence_unfreeze(char* dest, void* result, unsigned int len, uint32_t v #if FROZENSMALLEROK if (hdr.length < len) { - printf("frozen struct is %d bytes smaller than the requested size\n", len - hdr.length); + printf("frozen struct is %d bytes smaller than the requested size, removing end byte\n", len - hdr.length); + hdr.length -= 1; goto hdrlengthok; } #endif |