Skip to content

Commit

Permalink
chore: do base updateHook first
Browse files Browse the repository at this point in the history
  • Loading branch information
wvmcastro committed Dec 17, 2024
1 parent 03b1e79 commit af0c7f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/Task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ void Task::publishFault()
}
void Task::updateHook()
{
TaskBase::updateHook();

if (_cmd_in.read(m_cmd_in) == RTT::NewData) {
if (m_cmd_in.elements.size() != 1) {
return exception(INVALID_COMMAND_SIZE);
Expand All @@ -185,8 +187,6 @@ void Task::updateHook()

auto state = readAndPublishControllerStates();
evaluateInverterStatus(state.inverter_status);

TaskBase::updateHook();
}
void Task::processIO()
{
Expand Down

0 comments on commit af0c7f8

Please sign in to comment.