mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-24 06:49:24 -05:00
Make persistent memory data_t types explicit.
I want the storage types to be reliable, separate from the interface types.
This commit is contained in:
parent
11c786c4fb
commit
52ba9af1c7
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user