瀏覽代碼

减少监听时间

sat23 4 年之前
父節點
當前提交
853d77e01f
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      SerialWatch/SerialWatch/SerialWatch.cpp

+ 3 - 3
SerialWatch/SerialWatch/SerialWatch.cpp

@@ -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