Skip to content

Commit

Permalink
Enumerate all supported platforms so that any SDK change doesn't affe…
Browse files Browse the repository at this point in the history
…ct this code
  • Loading branch information
mihai-ignat committed Mar 24, 2022
1 parent 34213db commit 444edca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/platform/nxp/k32w/k32w0/PlatformManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ static int app_entropy_source(void * data, unsigned char * output, size_t len, s
CHIP_ERROR PlatformManagerImpl::_InitChipStack(void)
{
CHIP_ERROR err;
volatile uint32_t chipType = 0;
uint32_t chipType;

// Initialize the configuration system.
err = Internal::K32WConfig::Init();
SuccessOrExit(err);
chipType = Chip_GetType();
(void)chipType;

/* Check that chip type is from K32W0x1 family: K32W041A, K32W041AM, K32W061 or K32W041 */
if (chipType > CHIP_K32W041)
if ((chipType != CHIP_K32W061) && (chipType != CHIP_K32W041) && (chipType != CHIP_K32W041A) && (chipType != CHIP_K32W041AM))
{
err = CHIP_ERROR_INTERNAL;
ChipLogError(DeviceLayer, "Invalid chip type, expected K32W0x1");
Expand Down

0 comments on commit 444edca

Please sign in to comment.