Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Examples] Remove identical condition #25660

Merged
merged 3 commits into from
Mar 15, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Removed identical condition
  • Loading branch information
ReneJosefsen committed Mar 13, 2023
commit 3a6057afc636b7793ae3668aa42450222b686f96
2 changes: 1 addition & 1 deletion examples/pump-app/nrfconnect/main/PumpManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void PumpManager::SetCallbacks(Callback_fn_initiated aActionInitiated_CB, Callba

bool PumpManager::IsActionInProgress()
{
return (mState == kState_StartInitiated || mState == kState_StartInitiated) ? true : false;
return (mState == kState_StartInitiated) ? true : false;
ReneJosefsen marked this conversation as resolved.
Show resolved Hide resolved
}

bool PumpManager::IsStopped()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void PumpManager::SetCallbacks(Callback_fn_initiated aActionInitiated_CB, Callba

bool PumpManager::IsActionInProgress()
{
return (mState == kState_StartInitiated || mState == kState_StartInitiated) ? true : false;
return (mState == kState_StartInitiated) ? true : false;
}

bool PumpManager::IsStopped()
Expand Down