Adds immediate migration results in progress
This commit is contained in:
2102 files changed
+17482
-15071
No files matched your search
@@ -9,13 +9,12 @@
|
||||
namespace TrainingAreaBaseOC
|
||||
{
|
||||
|
||||
Channel::Channel(QChar channel, bool bIsBinary, QObject *parent)
|
||||
: QObject(parent)
|
||||
Channel::Channel(QChar channel, bool bIsBinary, QObject *parent) : QObject(parent)
|
||||
, m_channel(channel)
|
||||
, m_bIsBinary(bIsBinary)
|
||||
, m_device(nullptr)
|
||||
.getNGLLogger("SCTT.Channel"))
|
||||
{}
|
||||
.getNGLLogger("SCTT.Channel")),
|
||||
m_logger(NGL::NGLLoggerBootstrap::getLogger()) {}
|
||||
|
||||
void Channel::setDevice(Device *dev)
|
||||
{
|
||||
@@ -34,7 +33,7 @@ bool Channel::writeData(const QByteArray &data)
|
||||
{
|
||||
if (!m_device || !m_device->isOpen())
|
||||
{
|
||||
WARNING_LOG() << "Error writing data - device is not open" ;
|
||||
WARNING_LOG(m_logger) << "Error writing data - device is not open" ;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -61,7 +60,7 @@ void Channel::onDeviceDestroyed()
|
||||
|
||||
void Channel::onDataAvailable(const QByteArray &data)
|
||||
{
|
||||
TRACE_LOG() << "Data available from "
|
||||
TRACE_LOG(m_logger) << "Data available from "
|
||||
<< ", we are: " << m_channel
|
||||
<< ", data: '" << data << "'" ;
|
||||
emit dataAvailable(data);
|
||||
|
||||
Reference in new issue
Block a user