From a5437cb15b3033863df6016e2a2ec56dcd056b4b Mon Sep 17 00:00:00 2001
From: Marek Bel <marek.bel@posta.cz>
Date: Wed, 13 Feb 2019 22:29:29 +0100
Subject: [PATCH] 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.
---
 Firmware/mmu.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Firmware/mmu.cpp b/Firmware/mmu.cpp
index 3f59d584..2d3f8990 100644
--- a/Firmware/mmu.cpp
+++ b/Firmware/mmu.cpp
@@ -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);