From daaf59b8a6339d0435cbabb26d82084205fd6dfe Mon Sep 17 00:00:00 2001 From: Joker2770 <1214220480@qq.com> Date: Mon, 2 Mar 2020 14:26:16 +0800 Subject: [PATCH] docs: comment change. :memo: --- README.md | 4 ++-- sptsrc/port_control.cpp | 4 ---- sptsrc/port_control.h | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index be7b4eb..df16653 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ A Cross-platform serial test tool. ## Dependencies Required: * [cmake](http://www.cmake.org) - buildsystem -* g++ (>= 7.4.0 recommend) -* gcc (>= 7.4.0 recommend) +* g++ (>= 7.4.0 recommended) +* gcc (>= 7.4.0 recommended) ## Build on Linux ~~~ diff --git a/sptsrc/port_control.cpp b/sptsrc/port_control.cpp index 82485c2..0f384ec 100644 --- a/sptsrc/port_control.cpp +++ b/sptsrc/port_control.cpp @@ -229,10 +229,6 @@ void my_serial_ctrl::show_port_set() this->m_serial->getParity(), this->m_serial->getStopbits(), this->m_serial->getFlowcontrol() - //true == this->m_serial->getCTS()?1:0, - //true == this->m_serial->getDSR() ? 1 : 0, - //true == this->m_serial->getCD() ? 1 : 0, - //true == this->m_serial->getRI() ? 1 : 0 ); printf("---------------------------------------------\n"); } diff --git a/sptsrc/port_control.h b/sptsrc/port_control.h index bd524cb..0639f53 100644 --- a/sptsrc/port_control.h +++ b/sptsrc/port_control.h @@ -91,7 +91,7 @@ comment: StringToHex, e.g.: "12AC0D" -> 0x12 0xAC 0x0D pDest(out): destination string. uilen(out): count of characters of destination string. return: uilen. -caution: none. +caution: The source string only '0-9 a-z A-Z' include, that is can not include '~%$#.,/][\*...', etc. inside the source string. */ int StringToHex(char *pSrc, unsigned char *pDest, unsigned int *uilen);