integrating soft limits

This commit is contained in:
bungao
2013-02-26 13:55:12 +11:00
parent 67608a5014
commit b75e95c880
7 changed files with 34 additions and 7 deletions

View File

@ -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
}
}