Changeset d7b8ad7 in subsurface


Ignore:
Timestamp:
Jul 3, 2017, 1:49:52 PM (5 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
bdd1a35c
Parents:
096682c
git-author:
Jan Mulder <jlmulder@…> (07/03/17 02:16:18)
git-committer:
Dirk Hohndel <dirk@…> (07/03/17 13:49:52)
Message:

BT discovery Android: Allow BT/LE devices connect both ways

For DCs that support both BT and LE, allow the user to connect to both
interface layers. Maybe not usefull in the end (as BT is faster
than LE), but as long as BT on Android is WIP is it very useful
to be able to connect to the interface layer we like.

Just add it to the Paired Devices list twice. The normal way, and
the LE: prepend way.

Signed-off-by: Jan Mulder <jlmulder@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/btdiscovery.cpp

    r7199ad3 rd7b8ad7  
    230230                        qDebug() << "paired Device type" << btType << "with address" << result.address;
    231231                        btPairedDevices.append(result);
     232                        if (btType == 3) { // DEVICE_TYPE_DUAL
     233                                result.address = QString("LE:%1").arg(result.address);
     234                                qDebug() << "paired Device type" << btType << "with address" << result.address;
     235                                btPairedDevices.append(result);
     236                        }
    232237                }
    233238        }
Note: See TracChangeset for help on using the changeset viewer.