Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,940 changes: 1,708 additions & 232 deletions src/Comms/BluetoothLink.cc

Large diffs are not rendered by default.

299 changes: 210 additions & 89 deletions src/Comms/BluetoothLink.h

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/Comms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ if(QGC_ENABLE_BLUETOOTH)
BluetoothLink.cc
BluetoothLink.h
)

target_compile_definitions(${CMAKE_PROJECT_NAME} PRIVATE QGC_ENABLE_BLUETOOTH)
endif()

Expand Down
7 changes: 5 additions & 2 deletions src/Comms/LinkManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
****************************************************************************/

#include "LinkManager.h"
#include "DeviceInfo.h"
#include "LogReplayLink.h"
#include "MAVLinkProtocol.h"
#include "MultiVehicleManager.h"
Expand Down Expand Up @@ -706,7 +705,11 @@ void LinkManager::_removeConfiguration(const LinkConfiguration *config)

bool LinkManager::isBluetoothAvailable()
{
return QGCDeviceInfo::isBluetoothAvailable();
#ifdef QGC_ENABLE_BLUETOOTH
return BluetoothConfiguration::isBluetoothAvailable();
#else
return false;
#endif
}

bool LinkManager::containsLink(const LinkInterface *link)
Expand Down
Loading
Loading