mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-06 22:29:15 -04: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
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ constexpr ppb_range_t ppb_range { -99000, 99000 };
|
||||||
|
|
||||||
/* struct must pack the same way on M4 and M0 cores. */
|
/* struct must pack the same way on M4 and M0 cores. */
|
||||||
struct data_t {
|
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");
|
static_assert(sizeof(data_t) <= 0x100, "Persistent memory structure too large for VBAT-maintained region");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue