diff options
Diffstat (limited to 'apps/sm-get-value.h')
-rw-r--r-- | apps/sm-get-value.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/sm-get-value.h b/apps/sm-get-value.h index 0535f68..58e7005 100644 --- a/apps/sm-get-value.h +++ b/apps/sm-get-value.h @@ -53,6 +53,10 @@ public: ("format", default_format, "Output format"); } + void add_extra_options(po::options_description & options) override { + add_ble_options(options); + } + int main(app_execution &execution) override { __attribute__((unused)) BluetoothSystem bluetoothSystem; @@ -71,7 +75,7 @@ public: Mac mac = Mac::parseMac(MAC); - auto adapter = getAdapter(0); + auto adapter = bluetoothSystem.getAdapter(ble_adapter_name()); auto &device = adapter->getDevice(mac); |