Skip to content

Commit

Permalink
Rename EmberOrChipStatusToPwStatus to ToPwmStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmelveilleux committed Jan 29, 2024
1 parent 19f090f commit 953375c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/common/pigweed/rpc_services/internal/StatusUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#define RETURN_STATUS_IF_NOT_OK(expr) \
do \
{ \
pw::Status __status = chip::rpc::EmberOrChipStatusToPwStatus(expr); \
pw::Status __status = chip::rpc::ToPwStatus(expr); \
if (!__status.ok()) \
{ \
return __status; \
Expand All @@ -36,7 +36,7 @@
namespace chip {
namespace rpc {

constexpr pw::Status EmberOrChipStatusToPwStatus(EmberAfStatus ember_status)
constexpr pw::Status ToPwStatus(EmberAfStatus ember_status)
{
switch (ember_status)
{
Expand All @@ -51,7 +51,7 @@ constexpr pw::Status EmberOrChipStatusToPwStatus(EmberAfStatus ember_status)
}
}

constexpr pw::Status EmberOrChipStatusToPwStatus(CHIP_ERROR chip_error_status)
constexpr pw::Status ToPwStatus(CHIP_ERROR chip_error_status)
{
switch (chip_error_status.AsInteger())
{
Expand Down

0 comments on commit 953375c

Please sign in to comment.