mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Bluetooth: use_random_address helper isn't needed on Windows
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a8953da02d
commit
79d0185c62
1 changed files with 2 additions and 0 deletions
|
@ -366,6 +366,7 @@ dc_status_t BLEObject::setupHwTerminalIo(QList<QLowEnergyCharacteristic> allC)
|
||||||
return setHwCredit(MAXIMAL_HW_CREDIT);
|
return setHwCredit(MAXIMAL_HW_CREDIT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(Q_OS_WIN)
|
||||||
// Bluez is broken, and doesn't have a sane way to query
|
// Bluez is broken, and doesn't have a sane way to query
|
||||||
// whether to use a random address or not. So we have to
|
// whether to use a random address or not. So we have to
|
||||||
// fake it.
|
// fake it.
|
||||||
|
@ -373,6 +374,7 @@ static int use_random_address(dc_user_device_t *user_device)
|
||||||
{
|
{
|
||||||
return IS_SHEARWATER(user_device) || IS_GARMIN(user_device);
|
return IS_SHEARWATER(user_device) || IS_GARMIN(user_device);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
dc_status_t qt_ble_open(void **io, dc_context_t *, const char *devaddr, dc_user_device_t *user_device)
|
dc_status_t qt_ble_open(void **io, dc_context_t *, const char *devaddr, dc_user_device_t *user_device)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue