From 2af98191e07686341db4bf246ac4b95a93825d59 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Mon, 24 Nov 2014 18:40:14 -0800 Subject: [PATCH] Fixes for new _connect/_disconnect apis --- src/comm/XbeeLink.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/comm/XbeeLink.cpp b/src/comm/XbeeLink.cpp index e730b7ec28..1b3a237e6e 100644 --- a/src/comm/XbeeLink.cpp +++ b/src/comm/XbeeLink.cpp @@ -168,7 +168,7 @@ bool XbeeLink::hardwareConnect() bool XbeeLink::_connect(void) { - if (this->isRunning()) this->disconnect(); + if (this->isRunning()) _disconnect(); this->start(LowPriority); return true; } @@ -205,7 +205,7 @@ void XbeeLink::writeBytes(const char *bytes, qint64 length) // TO DO: delete th } else { - this->disconnect(); + _disconnect(); emit communicationError(this->getName(), tr("Could not send data - link %1 is disconnected!").arg(this->getName())); } } -- GitLab