From 52ba9af1c7fa5cd2576eaffa44a277948c3e0bd7 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Tue, 4 Aug 2015 10:29:10 -0700 Subject: [PATCH] Make persistent memory data_t types explicit. I want the storage types to be reliable, separate from the interface types. --- firmware/common/portapack_persistent_memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/common/portapack_persistent_memory.cpp b/firmware/common/portapack_persistent_memory.cpp index 1df1746d..3f1a7d13 100644 --- a/firmware/common/portapack_persistent_memory.cpp +++ b/firmware/common/portapack_persistent_memory.cpp @@ -52,7 +52,7 @@ constexpr ppb_range_t ppb_range { -99000, 99000 }; /* struct must pack the same way on M4 and M0 cores. */ struct data_t { - ppb_t correction_ppb; + int32_t correction_ppb; }; static_assert(sizeof(data_t) <= 0x100, "Persistent memory structure too large for VBAT-maintained region");