Skip to content

Commit

Permalink
ethercatmcController: setAlarmStatusSeverity on custom parameters
Browse files Browse the repository at this point in the history
When the MCU is disconnected, set the alarm severity even on
custom (output) parameters.
  • Loading branch information
tboegi committed Aug 14, 2024
1 parent faebf8c commit 5ef41da
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ethercatmcApp/src/ethercatmcController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1270,6 +1270,16 @@ void ethercatmcController::setAlarmStatusSeverityAllReadbacks(
setAlarmStatusSeverityAllAxes(function, status);
}
}
for (unsigned paramIndex = 0;
paramIndex < (sizeof(ctrlLocal.functionFromParamIndex) /
sizeof(ctrlLocal.functionFromParamIndex[0]));
paramIndex++) {
int function = ctrlLocal.functionFromParamIndex[paramIndex];
if (function) {
setAlarmStatusSeverityAllAxes(function, status);
}
}

#ifdef motorMessageTextString
setAlarmStatusSeverityAllAxes(motorMessageText_, status);
#endif
Expand Down

0 comments on commit 5ef41da

Please sign in to comment.