Merge pull request #1562 from PavelSindler/mmu_stop_print_fix

comments
This commit is contained in:
PavelSindler 2019-02-21 14:29:04 +01:00 committed by GitHub
commit 16bb6c80c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -94,7 +94,11 @@ void cmdqueue_reset()
bufindr = 0;
bufindw = 0;
buflen = 0;
cmdbuffer_front_already_processed = true;
//commands are removed from command queue after process_command() function is finished
//reseting command queue and enqueing new commands during some (usually long running) command processing would cause that new commands are immediately removed from queue (or damaged)
//this will ensure that all new commands which are enqueued after cmdqueue reset, will be always executed
cmdbuffer_front_already_processed = true;
}
// How long a string could be pushed to the front of the command queue?