|
@@ -658,6 +658,12 @@ void get_command()
|
658
|
658
|
}
|
659
|
659
|
|
660
|
660
|
}
|
|
661
|
+
|
|
662
|
+ if(strcmp(cmdbuffer[bufindw], "M112") == 0)
|
|
663
|
+ {
|
|
664
|
+ kill();
|
|
665
|
+ }
|
|
666
|
+
|
661
|
667
|
bufindw = (bufindw + 1)%BUFSIZE;
|
662
|
668
|
buflen += 1;
|
663
|
669
|
}
|
|
@@ -3340,6 +3346,9 @@ void handle_status_leds(void) {
|
3340
|
3346
|
|
3341
|
3347
|
void manage_inactivity()
|
3342
|
3348
|
{
|
|
3349
|
+ if(buflen < (BUFSIZE-1))
|
|
3350
|
+ get_command();
|
|
3351
|
+
|
3343
|
3352
|
if( (millis() - previous_millis_cmd) > max_inactive_time )
|
3344
|
3353
|
if(max_inactive_time)
|
3345
|
3354
|
kill();
|