diff --git a/toolbox/library/src/OSQP.cpp b/toolbox/library/src/OSQP.cpp index 6c4c54b8..a13d7b13 100644 --- a/toolbox/library/src/OSQP.cpp +++ b/toolbox/library/src/OSQP.cpp @@ -599,7 +599,8 @@ bool wbt::block::OSQP::output(const BlockInformation* blockInfo) } // Set status - if (!statusSignal->set(0, double(solveReturnVal))) { + OsqpEigen::Status status = pImpl->sqSolver->getStatus(); + if (!statusSignal->set(0, double(status))) { bfError << "Failed to set status signal."; return false; }