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