Skip to content

Commit

Permalink
Remove unused static in K32W factory data provider (#24557)
Browse files Browse the repository at this point in the history
* Remove unused static

* One more fix

* Restyle
  • Loading branch information
andy31415 authored and pull[bot] committed Jun 19, 2023
1 parent 095c281 commit 1050712
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/platform/nxp/k32w/k32w0/K32W0Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ CHIP_ERROR K32WConfig::WriteConfigValueStr(Key key, const char * str, size_t str
SuccessOrExit(err);
buffer = RamStorage::GetBuffer();
status = PDM_eSaveRecordDataInIdleTask(kNvmIdChipConfigData, buffer, buffer->ramBufferLen + kRamDescHeaderSize);
SuccessOrExit(err = MapPdmStatusToChipError(status));
}

exit:
Expand Down
1 change: 0 additions & 1 deletion src/platform/nxp/k32w/k32w0/K32W0FactoryDataProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ static constexpr size_t kDiscriminatorId = 7;
static constexpr size_t kMaxId = kDiscriminatorId;

static uint16_t maxLengths[kMaxId + 1];
static uint32_t factoryDataActualSize = 0;

typedef otaUtilsResult_t (*OtaUtils_EEPROM_ReadData)(uint16_t nbBytes, uint32_t address, uint8_t * pInbuf);

Expand Down

0 comments on commit 1050712

Please sign in to comment.