Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: device/serial/serial_io_handler_posix.cc

Issue 2644543003: Rename device.serial.ParityBit.NO to avoid a clash with NO in objective C. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/serial/serial_io_handler.cc ('k') | device/serial/serial_io_handler_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_io_handler_posix.cc
diff --git a/device/serial/serial_io_handler_posix.cc b/device/serial/serial_io_handler_posix.cc
index a2ca2e2309630af6bfef68847675b8404a5c8a3d..704a4bf076b3e70fce7d21f1c79d44fb5403ab11 100644
--- a/device/serial/serial_io_handler_posix.cc
+++ b/device/serial/serial_io_handler_posix.cc
@@ -223,7 +223,7 @@ bool SerialIoHandlerPosix::ConfigurePortImpl() {
case serial::ParityBit::ODD:
config.c_cflag |= (PARODD | PARENB);
break;
- case serial::ParityBit::NO:
+ case serial::ParityBit::NO_PARITY:
default:
config.c_cflag &= ~(PARODD | PARENB);
break;
@@ -492,7 +492,7 @@ serial::ConnectionInfoPtr SerialIoHandlerPosix::GetPortInfo() const {
info->parity_bit = (config.c_cflag & PARODD) ? serial::ParityBit::ODD
: serial::ParityBit::EVEN;
} else {
- info->parity_bit = serial::ParityBit::NO;
+ info->parity_bit = serial::ParityBit::NO_PARITY;
}
info->stop_bits =
(config.c_cflag & CSTOPB) ? serial::StopBits::TWO : serial::StopBits::ONE;
« no previous file with comments | « device/serial/serial_io_handler.cc ('k') | device/serial/serial_io_handler_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698