integrating soft limits
This commit is contained in:
parent
67608a5014
commit
b75e95c880
7 changed files with 34 additions and 7 deletions
1
limits.c
1
limits.c
|
|
@ -73,6 +73,7 @@ ISR(LIMIT_INT_vect)
|
|||
if (sys.state != STATE_ALARM) {
|
||||
if (bit_isfalse(sys.execute,EXEC_ALARM)) {
|
||||
mc_reset(); // Initiate system kill.
|
||||
report_alarm_message(ALARM_HARD_LIMIT);
|
||||
sys.execute |= EXEC_CRIT_EVENT; // Indicate hard limit critical event
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue