Skip to content

Commit

Permalink
[build] Fix warning failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
turon committed Dec 15, 2021
1 parent ecfb536 commit d3c7186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/clusters/basic/basic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ void emberAfBasicClusterServerInitCallback(chip::EndpointId endpoint)
uint8_t manufacturingDayOfMonth;
if (ConfigurationMgr().GetManufacturingDate(manufacturingYear, manufacturingMonth, manufacturingDayOfMonth) == CHIP_NO_ERROR)
{
snprintf(manufacturingDateString, sizeof(manufacturingDateString), "%04" PRIu16 "-%02" PRIu16 "-%02" PRIu16,
snprintf(manufacturingDateString, sizeof(manufacturingDateString), "%04" PRIu16 "-%02" PRIu8 "-%02" PRIu8,
manufacturingYear, manufacturingMonth, manufacturingDayOfMonth);
status = Attributes::ManufacturingDate::Set(endpoint, CharSpan(manufacturingDateString, strlen(manufacturingDateString)));
VerifyOrdo(EMBER_ZCL_STATUS_SUCCESS == status,
Expand Down

0 comments on commit d3c7186

Please sign in to comment.