Closed ITotalJustice closed 11 months ago
i wasn't sure if the version field should be a bitfield or just a u32. if we keep it a u32, should i comment how to extract the version as it might not be obvious to the dev, as they may try to use HOSVER_X macros on it
version
HOSVER_X
const u8 relstep = (update_partition_info.version >> 0) & 0xFFFF; const u8 micro = (update_partition_info.version >> 16) & 0x000F; const u8 minor = (update_partition_info.version >> 20) & 0x003F; const u8 major = (update_partition_info.version >> 26) & 0x003F;
u32 version is fine, u32 version is used elsewhere.
u32 version
i wasn't sure if the
version
field should be a bitfield or just a u32. if we keep it a u32, should i comment how to extract the version as it might not be obvious to the dev, as they may try to useHOSVER_X
macros on it