Skip to content

Commit

Permalink
Fix hyperion-project#903 - Adalight
Browse files Browse the repository at this point in the history
  • Loading branch information
Lord-Grey committed Sep 3, 2020
1 parent 6e039a0 commit 7f676a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libsrc/leddevice/dev_serial/ProviderRs232.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ bool ProviderRs232::tryOpen(int delayAfterConnect_ms)

_rs232Port.setBaudRate( _baudRate_Hz );

Debug(_log, "_rs232Port.open(QIODevice::WriteOnly): %s, Baud rate [%d]bps", QSTRING_CSTR(_deviceName), _baudRate_Hz);
Debug(_log, "_rs232Port.open(QIODevice::ReadWrite): %s, Baud rate [%d]bps", QSTRING_CSTR(_deviceName), _baudRate_Hz);

QSerialPortInfo serialPortInfo(_deviceName);

Expand All @@ -153,7 +153,7 @@ bool ProviderRs232::tryOpen(int delayAfterConnect_ms)

if (!serialPortInfo.isNull() )
{
if ( !_rs232Port.open(QIODevice::WriteOnly) )
if ( !_rs232Port.open(QIODevice::ReadWrite) )
{
this->setInError(_rs232Port.errorString());
return false;
Expand Down

0 comments on commit 7f676a8

Please sign in to comment.