Skip to content

Commit 8ca0124

Browse files
authored
Update flash.c
[Ctrl+Alt+Del] Bug fixes
1 parent 98a1eb7 commit 8ca0124

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

USBAirborne.uvproj/lib/flash.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ void ExecBadUSBPayload() {
198198
case 7: SendKey(KB_LeftGUI, KB_D); break; // [Win+D]
199199
case 8: SendKey(KB_LeftGUI, KB_L); break; // [Win+L]
200200
case 9: SendKey(KB_LeftGUI, KB_E); break; // [Win+E]
201-
case 10: SendKey(KB_RightControl, KB_LeftALT); SendKey(KB_DEL, KB_NULL); break; // [Ctrl+Alt+Del]
202-
case 11: mDelaymS(500); break; // [Delay]
203-
case 12: WriteDataToFlash(0x00, ZERO, sizeof(ZERO));CH554SoftReset(); break; // [Format]
201+
case 10: SendKey(KB_LeftControl | KB_LeftALT, KB_DEL); break; // [Ctrl+Alt+Del]
202+
case 11: mDelaymS(500); break; // [Delay]
203+
case 12: WriteDataToFlash(0x00, ZERO, sizeof(ZERO));CH554SoftReset(); break; // [Format]
204204
}
205205
patternIndex[i] = 0;
206206
patternFound[i] = 0; // Reset flag
@@ -456,4 +456,4 @@ void BulkWriteFlash(UINT32 StarAddr, UINT16 Len, PUINT8 SendBuffer)
456456
SPI_CS = 1;
457457
WriteFlashForbidden(); // 写禁止
458458
WaitFlashBusy(); // 等待Flash忙结束
459-
}
459+
}

0 commit comments

Comments
 (0)