Added estop handling

This commit is contained in:
Dan Nixon 2014-03-15 15:56:15 +00:00
parent 272072fa20
commit a38c90ee84

View File

@ -658,6 +658,12 @@ void get_command()
}
}
if(strcmp(cmdbuffer[bufindw], "M112") == 0)
{
kill();
}
bufindw = (bufindw + 1)%BUFSIZE;
buflen += 1;
}
@ -3340,6 +3346,9 @@ void handle_status_leds(void) {
void manage_inactivity()
{
if(buflen < (BUFSIZE-1))
get_command();
if( (millis() - previous_millis_cmd) > max_inactive_time )
if(max_inactive_time)
kill();