set NOT_BUSY host keepalive state at the beginning of loop

This commit is contained in:
PavelSindler 2017-10-12 15:54:24 +02:00
parent 038f37854a
commit 5c07437b42
1 changed files with 1 additions and 0 deletions

View File

@ -1388,6 +1388,7 @@ void host_keepalive() {
// Before loop(), the setup() function is called by the main() routine.
void loop()
{
KEEPALIVE_STATE(NOT_BUSY);
if (usb_printing_counter > 0 && millis()-_usb_timer > 1000)
{
is_usb_printing = true;