From af859acf04ae58d8d4afd588b5c248d79e9dc236 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sun, 19 Jan 2025 00:23:13 -0500 Subject: [PATCH] Tie NVRAM CRC to NVRAM_BLOCK_SIZE by tying initial to NVRAM_BLOCK_SIZE we get automatic invalidation when the system_status struct changes Change-Id: Icd8fad14bdd31dddd609833830c939d5560feeb1 --- apps/settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/settings.c b/apps/settings.c index 58a8e30b9d..7f6022ace2 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -146,7 +146,7 @@ long lasttime = 0; static unsigned int nvram_crc(char *buf, int max_len) { - return crc_32(&buf[NVRAM_DATA_START], max_len - NVRAM_DATA_START - 1, 0xffffffff); + return crc_32(&buf[NVRAM_DATA_START], max_len - NVRAM_DATA_START - 1, NVRAM_BLOCK_SIZE); } static void read_nvram_data(void)