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:
Marek Bel 2019-02-13 22:29:29 +01:00
parent a4032e437e
commit a5437cb15b

View file

@ -379,7 +379,7 @@ void mmu_loop(void)
}
else if ((mmu_last_request + MMU_CMD_TIMEOUT) < _millis())
{ //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) {
DEBUG_PRINTF_P(PSTR("MMU retry attempt nr. %d\n"), mmu_attempt_nr - 1);