Skip to content

Commit

Permalink
Update src/app/clusters/localization-configuration-server/localizatio…
Browse files Browse the repository at this point in the history
…n-configuration-server.cpp

Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
yufengwangca and bzbarsky-apple authored Jan 25, 2022
1 parent 332471a commit 8c053c0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ void emberAfLocalizationConfigurationClusterServerInitCallback(EndpointId endpoi
DeviceLayer::AttributeList<CharSpan, DeviceLayer::kMaxLanguageTags> supportedLocales;
CharSpan validLocale;

char outBuffer[kMaxActiveLocaleLength] = "";
MutableCharSpan activeLocale(outBuffer, kMaxActiveLocaleLength);
char outBuffer[kMaxActiveLocaleLength];
MutableCharSpan activeLocale(outBuffer);
EmberAfStatus status = ActiveLocale::Get(endpoint, activeLocale);

VerifyOrReturn(EMBER_ZCL_STATUS_SUCCESS == status, ChipLogError(Zcl, "Failed to read ActiveLocale with error: 0x%02x", status));
Expand Down

0 comments on commit 8c053c0

Please sign in to comment.