From 0200a36062386b937567265e3ea01f93eaa8f1f5 Mon Sep 17 00:00:00 2001 From: QuakeGod <quakegod@sina.com> Date: 星期五, 20 十月 2023 22:10:19 +0800 Subject: [PATCH] dev1 --- KLink1/HvSerialPort.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/KLink1/HvSerialPort.cpp b/KLink1/HvSerialPort.cpp index fb34532..ba2169f 100644 --- a/KLink1/HvSerialPort.cpp +++ b/KLink1/HvSerialPort.cpp @@ -30,7 +30,7 @@ if (this->m_bOpened) { m_strResult.Format(_T("COM%d already Opened"),m_nPort); - return R_ERR; + return R_OK; } ComPortName.Format(_T("\\\\.\\COM%d"), this->m_nPort); hCom1 = CreateFile(ComPortName, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);//FILE_ATTRIBUTE_NORMAL|FILE_FLAG_OVERLAPPED -- Gitblit v1.9.1