Improve Air Copy and enable restart

This commit is contained in:
Armel FAUVEAU
2024-08-13 20:15:45 +02:00
parent b78115f8bf
commit d2235c0bdb

View File

@@ -64,7 +64,8 @@ bool AIRCOPY_SendMessage(void)
} }
if (++gAirCopyBlockNumber >= 0x78) { if (++gAirCopyBlockNumber >= 0x78) {
gAircopyState = AIRCOPY_COMPLETE; gAircopyState = AIRCOPY_READY;
//gAircopyState = AIRCOPY_COMPLETE;
//NVIC_SystemReset(); //NVIC_SystemReset();
} }
@@ -122,7 +123,8 @@ void AIRCOPY_StorePacket(void)
} }
if (Offset == 0x1E00) { if (Offset == 0x1E00) {
gAircopyState = AIRCOPY_COMPLETE; gAircopyState = AIRCOPY_READY;
//gAircopyState = AIRCOPY_COMPLETE;
} }
gAirCopyBlockNumber++; gAirCopyBlockNumber++;