mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
commit
24b861d3b5
@ -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);
|
||||
|
||||
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user