mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Fix #903 - Adalight
This commit is contained in:
parent
6e039a0d83
commit
7f676a8a4a
@ -138,7 +138,7 @@ bool ProviderRs232::tryOpen(int delayAfterConnect_ms)
|
|||||||
|
|
||||||
_rs232Port.setBaudRate( _baudRate_Hz );
|
_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);
|
QSerialPortInfo serialPortInfo(_deviceName);
|
||||||
|
|
||||||
@ -153,7 +153,7 @@ bool ProviderRs232::tryOpen(int delayAfterConnect_ms)
|
|||||||
|
|
||||||
if (!serialPortInfo.isNull() )
|
if (!serialPortInfo.isNull() )
|
||||||
{
|
{
|
||||||
if ( !_rs232Port.open(QIODevice::WriteOnly) )
|
if ( !_rs232Port.open(QIODevice::ReadWrite) )
|
||||||
{
|
{
|
||||||
this->setInError(_rs232Port.errorString());
|
this->setInError(_rs232Port.errorString());
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user