Skip to content

Commit 6c5d390

Browse files
committed
Comms: Add BluetoothLE Link
1 parent 095bb5a commit 6c5d390

8 files changed

Lines changed: 2345 additions & 368 deletions

File tree

src/Comms/BluetoothLink.cc

Lines changed: 1810 additions & 232 deletions
Large diffs are not rendered by default.

src/Comms/BluetoothLink.h

Lines changed: 210 additions & 89 deletions
Large diffs are not rendered by default.

src/Comms/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ if(QGC_ENABLE_BLUETOOTH)
7474
BluetoothLink.cc
7575
BluetoothLink.h
7676
)
77+
7778
target_compile_definitions(${CMAKE_PROJECT_NAME} PRIVATE QGC_ENABLE_BLUETOOTH)
7879
endif()
7980

src/Comms/LinkManager.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
****************************************************************************/
99

1010
#include "LinkManager.h"
11-
#include "DeviceInfo.h"
1211
#include "LogReplayLink.h"
1312
#include "MAVLinkProtocol.h"
1413
#include "MultiVehicleManager.h"
@@ -706,7 +705,11 @@ void LinkManager::_removeConfiguration(const LinkConfiguration *config)
706705

707706
bool LinkManager::isBluetoothAvailable()
708707
{
709-
return QGCDeviceInfo::isBluetoothAvailable();
708+
#ifdef QGC_ENABLE_BLUETOOTH
709+
return BluetoothConfiguration::isBluetoothAvailable();
710+
#else
711+
return false;
712+
#endif
710713
}
711714

712715
bool LinkManager::containsLink(const LinkInterface *link)

0 commit comments

Comments
 (0)