Skip to content

Commit

Permalink
efr32+wf200 platform didn't previously use ChipMemString, add the hea…
Browse files Browse the repository at this point in the history
…der so it reconize the function within the namespace
  • Loading branch information
jmartinez-silabs committed May 18, 2023
1 parent 91c55d8 commit 66f2d79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/platform/silabs/SilabsDeviceDataProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "SilabsDeviceDataProvider.h"
#include <crypto/CHIPCryptoPAL.h>
#include <lib/support/Base64.h>
#include <lib/support/CHIPMemString.h>
#include <platform/silabs/SilabsConfig.h>
#include <setup_payload/Base38Encode.h>
#include <setup_payload/SetupPayload.h>
Expand Down Expand Up @@ -391,6 +392,8 @@ CHIP_ERROR SilabsDeviceDataProvider::GetHardwareVersionString(char * buf, size_t
if (err == CHIP_DEVICE_ERROR_CONFIG_NOT_FOUND)
{
VerifyOrReturnError(buf != nullptr, CHIP_ERROR_NO_MEMORY);
VerifyOrReturnError(bufSize > strlen(CHIP_DEVICE_CONFIG_DEFAULT_DEVICE_HARDWARE_VERSION_STRING),
CHIP_ERROR_BUFFER_TOO_SMALL);
Platform::CopyString(buf, bufSize, CHIP_DEVICE_CONFIG_DEFAULT_DEVICE_HARDWARE_VERSION_STRING);
err = CHIP_NO_ERROR;
}
Expand Down

0 comments on commit 66f2d79

Please sign in to comment.