Updated Case 3:

This commit is contained in:
TheZeroBeast 2018-10-29 09:19:11 +10:00 committed by GitHub
parent 94a52e8d58
commit 8fd41841c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 11 deletions

View File

@ -304,19 +304,11 @@ void mmu_loop(void)
case 3: //response to mmu commands
if (mmu_rx_ok() > 0)
{
if (!mmuFilamentLoading) {
// mmu_puts_P(PSTR("C1\n")); //send 'cut retry'
// mmuFilamentLoading = false;
//} else {
#ifdef MMU_DEBUG
printf_P(PSTR("MMU => 'ok'\n"));
printf_P(PSTR("MMU => 'ok'\n"));
#endif //MMU_DEBUG
mmu_ready = true;
mmu_state = 1;
}
} else if (mmu_rx_not_ok() > 0) {
// do something with error responses from MMU
mmuFilamentLoading = false;
mmu_ready = true;
mmu_state = 1;
}
else if ((mmu_last_request + MMU_CMD_TIMEOUT) < millis())
{ //resend request after timeout (5 min)
@ -326,6 +318,7 @@ void mmu_loop(void)
}
}
void mmu_reset(void)
{
#ifdef MMU_HWRESET //HW - pulse reset pin