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 committed Mar 3, 2022
1 parent d52befb commit d911ad0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ CHIP_ERROR LocalizationConfigurationAttrAccess::Read(const ConcreteReadAttribute
// Pre-change callbacks for cluster attributes
// =============================================================================

using imcode = Protocols::InteractionModel::Status;
using Status = Protocols::InteractionModel::Status;

static Protocols::InteractionModel::Status emberAfPluginLocalizationConfigurationOnActiveLocaleChange(EndpointId EndpointId,
CharSpan newLangtag)
Expand All @@ -110,12 +110,12 @@ static Protocols::InteractionModel::Status emberAfPluginLocalizationConfiguratio
{
if (locale.data_equal(newLangtag))
{
return imcode::Success;
return Status::Success;
}
}
}

return imcode::InvalidValue;
return Status::InvalidValue;
}

Protocols::InteractionModel::Status MatterLocalizationConfigurationClusterServerPreAttributeChangedCallback(
Expand All @@ -132,7 +132,7 @@ Protocols::InteractionModel::Status MatterLocalizationConfigurationClusterServer
break;
}
default:
res = imcode::Success;
res = Status::Success;
break;
}

Expand Down

0 comments on commit d911ad0

Please sign in to comment.