aboutsummaryrefslogtreecommitdiff
path: root/apps/sm-get-value.h
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-06-21 16:58:18 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2015-06-21 16:58:18 +0200
commit9042b87f32bcabcc671e393376d3fb96ad858caa (patch)
treec68fe4f680fcc2a53ff3375141c9ad52cd1a028e /apps/sm-get-value.h
parent4529a75f15bffd5bb941818deef03fb50a6fc9c9 (diff)
downloadble-toys-9042b87f32bcabcc671e393376d3fb96ad858caa.tar.gz
ble-toys-9042b87f32bcabcc671e393376d3fb96ad858caa.tar.bz2
ble-toys-9042b87f32bcabcc671e393376d3fb96ad858caa.tar.xz
ble-toys-9042b87f32bcabcc671e393376d3fb96ad858caa.zip
ble-scan:
o New tool to scan for devices. Requires root on linux :( Linux is also touchy if the program dies. BluetoothAdapter: o Adding getMac().
Diffstat (limited to 'apps/sm-get-value.h')
-rw-r--r--apps/sm-get-value.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/sm-get-value.h b/apps/sm-get-value.h
index 0073d7f..0535f68 100644
--- a/apps/sm-get-value.h
+++ b/apps/sm-get-value.h
@@ -71,9 +71,9 @@ public:
Mac mac = Mac::parseMac(MAC);
- auto &adapter = getAdapter(0);
+ auto adapter = getAdapter(0);
- auto &device = adapter.getDevice(mac);
+ auto &device = adapter->getDevice(mac);
loop = sleepTime > 0;