mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-02 03:15:37 +00:00
Improve Air Copy and enable restart
This commit is contained in:
1 parent
b78115f8bf
commit
d2235c0bdb
1 file changed
+4
-2
+4
-2
@@ -64,7 +64,8 @@ bool AIRCOPY_SendMessage(void)
|
||||
}
|
||||
|
||||
if (++gAirCopyBlockNumber >= 0x78) {
|
||||
gAircopyState = AIRCOPY_COMPLETE;
|
||||
gAircopyState = AIRCOPY_READY;
|
||||
//gAircopyState = AIRCOPY_COMPLETE;
|
||||
//NVIC_SystemReset();
|
||||
}
|
||||
|
||||
@@ -122,7 +123,8 @@ void AIRCOPY_StorePacket(void)
|
||||
}
|
||||
|
||||
if (Offset == 0x1E00) {
|
||||
gAircopyState = AIRCOPY_COMPLETE;
|
||||
gAircopyState = AIRCOPY_READY;
|
||||
//gAircopyState = AIRCOPY_COMPLETE;
|
||||
}
|
||||
|
||||
gAirCopyBlockNumber++;
|
||||
|
||||
Reference in new issue
Block a user