Explorar el Código

scan power failures fix

PavelSindler hace 6 años
padre
commit
88441f7f2f
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      Firmware/mmu.cpp

+ 6 - 0
Firmware/mmu.cpp

@@ -373,6 +373,12 @@ void mmu_loop(void)
 		if (mmu_rx_ok() > 0)
 		{
 			fscanf_P(uart2io, PSTR("%d"), &mmu_power_failures); //scan finda from buffer
+#ifdef MMU_DEBUG
+			printf_P(PSTR("MMU => 'ok'\n"));
+#endif //MMU_DEBUG
+			mmu_last_cmd = 0;
+			mmu_ready = true;
+			mmu_state = 1;
 		}
 		else if ((mmu_last_request + MMU_CMD_TIMEOUT) < millis())
 		{ //resend request after timeout (5 min)