Resend MMU T commands only.
This solves problem with unload repeated if unload takes too long, second ok reply then triggers Wait end and resumes print.
This commit is contained in:
parent
a4032e437e
commit
a5437cb15b
1 changed files with 1 additions and 1 deletions
|
@ -379,7 +379,7 @@ void mmu_loop(void)
|
||||||
}
|
}
|
||||||
else if ((mmu_last_request + MMU_CMD_TIMEOUT) < _millis())
|
else if ((mmu_last_request + MMU_CMD_TIMEOUT) < _millis())
|
||||||
{ //resend request after timeout (5 min)
|
{ //resend request after timeout (5 min)
|
||||||
if (mmu_last_cmd != MmuCmd::None)
|
if (mmu_last_cmd >= MmuCmd::T0 && mmu_last_cmd <= MmuCmd::T4)
|
||||||
{
|
{
|
||||||
if (mmu_attempt_nr++ < MMU_MAX_RESEND_ATTEMPTS) {
|
if (mmu_attempt_nr++ < MMU_MAX_RESEND_ATTEMPTS) {
|
||||||
DEBUG_PRINTF_P(PSTR("MMU retry attempt nr. %d\n"), mmu_attempt_nr - 1);
|
DEBUG_PRINTF_P(PSTR("MMU retry attempt nr. %d\n"), mmu_attempt_nr - 1);
|
||||||
|
|
Loading…
Add table
Reference in a new issue