소스 검색

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.
Marek Bel 5 년 전
부모
커밋
a5437cb15b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Firmware/mmu.cpp

+ 1 - 1
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);