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

Unified Diff: chrome/browser/extensions/api/serial/serial_connection_posix.cc

Issue 10961009: Use cfsetispeed and cfsetospeed helpers to set bitrate. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/serial/serial_connection_posix.cc
diff --git a/chrome/browser/extensions/api/serial/serial_connection_posix.cc b/chrome/browser/extensions/api/serial/serial_connection_posix.cc
index 8754dfaab53a3e0548cd8c4287dc4abfaa61c992..49f0bd18b7a184d9f8556731163d535dde5b2452 100644
--- a/chrome/browser/extensions/api/serial/serial_connection_posix.cc
+++ b/chrome/browser/extensions/api/serial/serial_connection_posix.cc
@@ -17,8 +17,8 @@ bool SerialConnection::PostOpen() {
// Bitrate (sometimes erroneously referred to as baud rate).
if (bitrate_ >= 0) {
- options.c_ispeed = bitrate_;
- options.c_ospeed = bitrate_;
+ cfsetispeed(&options, bitrate_);
+ cfsetospeed(&options, bitrate_);
}
// 8N1
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698