Skip to content

Commit

Permalink
Updated a returend error following the spec change.
Browse files Browse the repository at this point in the history
  • Loading branch information
hicklin committed Feb 2, 2024
1 parent 6704126 commit b04e537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/rvc-app/rvc-common/src/rvc-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void RvcDevice::HandleRvcCleanChangeToMode(uint8_t newMode, ModeBase::Commands::

if (rvcRunCurrentMode != RvcRunMode::ModeIdle)
{
response.status = to_underlying(RvcCleanMode::StatusCode::kCleaningInProgress);
response.status = to_underlying(ModeBase::StatusCode::kInvalidInMode);
response.statusText.SetValue(chip::CharSpan::fromCharString("Change of the cleaning mode is only allowed in Idle."));
return;
}
Expand Down

0 comments on commit b04e537

Please sign in to comment.