Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
EricB-ADI committed Oct 25, 2024
1 parent d20c505 commit e0da363
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Libraries/PeriphDrivers/Source/SYS/sys_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,19 @@ mxc_sys_package_type_t MXC_SYS_GetPackageType(void)
mxc_sys_date_t date;

// Package codes were only introduced when test date was
if(MXC_SYS_GetTestDate(&date) != E_NO_ERROR)
{
if (MXC_SYS_GetTestDate(&date) != E_NO_ERROR) {
return MXC_SYS_PKG_UNSET;
}

MXC_FLC_UnlockInfoBlock(MXC_INFO_MEM_BASE);

const uint8_t maybe_pkg_type = REG8_VAL(PKG_CODE_OFFSET);
const int err = MXC_SYS_SetPackageType(maybe_pkg_type);

MXC_FLC_LockInfoBlock(MXC_INFO_MEM_BASE);

MXC_ASSERT(err == E_NO_ERROR);

return pkg_type;
}
int MXC_SYS_SetPackageType(mxc_sys_package_type_t new_pkg_type)
Expand Down

0 comments on commit e0da363

Please sign in to comment.