diff options
Diffstat (limited to 'src/serialport/qserialport_win.cpp')
-rw-r--r-- | src/serialport/qserialport_win.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/serialport/qserialport_win.cpp b/src/serialport/qserialport_win.cpp index d0625839..bbc3e8cd 100644 --- a/src/serialport/qserialport_win.cpp +++ b/src/serialport/qserialport_win.cpp @@ -376,15 +376,15 @@ bool QSerialPortPrivate::clear(QSerialPort::Directions dir) bool QSerialPortPrivate::sendBreak(int duration) { // FIXME: - if (setBreak(true)) { + if (setBreakEnabled(true)) { ::Sleep(duration); - if (setBreak(false)) + if (setBreakEnabled(false)) return true; } return false; } -bool QSerialPortPrivate::setBreak(bool set) +bool QSerialPortPrivate::setBreakEnabled(bool set) { if (set) return ::SetCommBreak(descriptor); |