From: Gerhard Sittig Date: Wed, 15 Mar 2023 23:45:20 +0000 (+0100) Subject: serial_bt: increase scan duration for BT/BLE connections X-Git-Url: https://sigrok.org/gitweb/?a=commitdiff_plain;h=a1b80f9d314d5a3227ffe48354fbef3ba3c943f6;p=libsigrok.git serial_bt: increase scan duration for BT/BLE connections Some devices are slow to respond to scans. Increase the scan duration from 2s to 3s. Tested with RDTech UM25C. Should be acceptable when a manual scan takes some 6 seconds (BT and BLE) instead of 4. --- diff --git a/src/serial_bt.c b/src/serial_bt.c index d950b699..6a98d965 100644 --- a/src/serial_bt.c +++ b/src/serial_bt.c @@ -847,7 +847,7 @@ static void scan_cb(void *cb_args, const char *addr, const char *name) static GSList *ser_bt_list(GSList *list, sr_ser_list_append_t append) { - static const int scan_duration = 2; + static const int scan_duration = 3; struct bt_scan_args_t scan_args; struct sr_bt_desc *desc;