|
@@ -131,9 +131,9 @@ SERIALWATCH_API bool RTK_USBUpgrade(BYTE byKey)
|
|
DWORD dwTickCount = GetTickCount();
|
|
DWORD dwTickCount = GetTickCount();
|
|
while ( TRUE ) {
|
|
while ( TRUE ) {
|
|
// 连续发送150次按键;
|
|
// 连续发送150次按键;
|
|
- SendCommand((LPCTSTR)&byKey, 10, 0);
|
|
|
|
|
|
+ SendCommand((LPCTSTR)&byKey, 20, 0);
|
|
if ( byKey == 0x1B ){ // ESC键;
|
|
if ( byKey == 0x1B ){ // ESC键;
|
|
- if ( WatchWord(_T("Realtek>"), 120) ) {
|
|
|
|
|
|
+ if ( WatchWord(_T("Realtek>"), 90) ) {
|
|
#ifdef _DEBUG
|
|
#ifdef _DEBUG
|
|
printf("找到关键字\n");
|
|
printf("找到关键字\n");
|
|
#endif
|
|
#endif
|
|
@@ -143,7 +143,7 @@ SERIALWATCH_API bool RTK_USBUpgrade(BYTE byKey)
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
} else if (byKey == 0x09) { // TAB键;
|
|
} else if (byKey == 0x09) { // TAB键;
|
|
- if ( WatchWord(_T("loader start!"), 120) ) {
|
|
|
|
|
|
+ if ( WatchWord(_T("loader start!"), 90) ) {
|
|
#ifdef _DEBUG
|
|
#ifdef _DEBUG
|
|
printf("找到关键字\n");
|
|
printf("找到关键字\n");
|
|
#endif
|
|
#endif
|