summaryrefslogtreecommitdiff
path: root/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'flash.c')
-rw-r--r--flash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/flash.c b/flash.c
index 70286d6..57f8fc0 100644
--- a/flash.c
+++ b/flash.c
@@ -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