Skip to content

Commit

Permalink
Fixed issue #8 - baud rate and namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
yan9a committed Mar 18, 2024
1 parent 83987d2 commit 2df6f0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ceSerial.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ float ceSerial::GetStopBits() {

void ceSerial::SetBaudRate(long baudrate) {
stdbaud = true;
if (baudrate == 1100) baud = CBR_110;
if (baudrate == 110) baud = CBR_110;
else if (baudrate == 300) baud = CBR_300;
else if (baudrate == 600) baud = CBR_600;
else if (baudrate == 1200) baud = CBR_1200;
Expand All @@ -199,7 +199,7 @@ long ceSerial::GetBaudRate() {
long ceSerial::Open() {
if (IsOpened()) return 0;
#ifdef UNICODE
wstring wtext(port.begin(),port.end());
std::wstring wtext(port.begin(),port.end());
#else
std::string wtext = port;
#endif
Expand Down

0 comments on commit 2df6f0f

Please sign in to comment.