sat23 4 年 前
コミット
69e5f56646

+ 3 - 3
SerialWatch/SerialWatch/SerialWatch.cpp

@@ -39,8 +39,8 @@ int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
 			// ¿ªÊ¼¼àÌý;
 			StartMonitor();
 
-			//RTK_USBUpgrade(9, 0x1B); // ESC¼üÉý¼¶;
-			RTK_USBUpgrade(9, 0x09); // TAB¼üÉý¼¶;
+			//RTK_USBUpgrade(0x1B); // ESC¼üÉý¼¶;
+			RTK_USBUpgrade(0x09); // TAB¼üÉý¼¶;
 
 			Sleep(30000);
 			CloseTVPort();
@@ -112,7 +112,7 @@ SERIALWATCH_API void ClearBuffer()
 	g_TVPort.ClearBuffer();
 }
 
-SERIALWATCH_API bool RTK_USBUpgrade(INT nPort, BYTE byKey)
+SERIALWATCH_API bool RTK_USBUpgrade(BYTE byKey)
 {
 	bool bRet = false;
 	if ( IsOpen() ) {

+ 1 - 1
SerialWatch/SerialWatch/SerialWatch.h

@@ -26,4 +26,4 @@ SERIALWATCH_API void ClearBuffer();
 // 监听指定关键字是否出现;
 SERIALWATCH_API bool WatchWord(LPCTSTR lpWatchWord, int nWatchTime = 3000);
 // RTK的升级方案;
-SERIALWATCH_API bool RTK_USBUpgrade(INT nPort, BYTE byKey);
+SERIALWATCH_API bool RTK_USBUpgrade(BYTE byKey);