From 2df6f0f6ebec02a00f03de329a9592ddf9a8d060 Mon Sep 17 00:00:00 2001 From: yan9a Date: Tue, 19 Mar 2024 10:51:30 +1300 Subject: [PATCH] Fixed issue #8 - baud rate and namespace --- ceSerial.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ceSerial.h b/ceSerial.h index 140b493..bd8f8cd 100644 --- a/ceSerial.h +++ b/ceSerial.h @@ -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; @@ -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