summaryrefslogtreecommitdiff
path: root/src/adv_monitor.c
diff options
context:
space:
mode:
authorManish Mandlik <mmandlik@google.com>2021-11-20 07:29:40 -0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-11-22 14:25:05 -0800
commit85397c4acbf01f9560e81559755367766a44b4bc (patch)
tree098c8da482278ae893e4bfcb047e3bca488f4976 /src/adv_monitor.c
parentf61808407703389c1f172b11923bdd81a1766703 (diff)
downloadbluez-85397c4acbf01f9560e81559755367766a44b4bc.tar.gz
adv_monitor: Change sampling period to uint16_t
In the Advertisement Monitor API, RSSISamplingPeriod is an unsigned value. Change sampling_period variable to uint16_t in the code. More info: doc/advertisement-monitor-api.txt Reviewed-by: Archie Pusaka <apusaka@google.com> Reviewed-by: Miao-chen Chou <mcchou@google.com>
Diffstat (limited to 'src/adv_monitor.c')
-rw-r--r--src/adv_monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/adv_monitor.c b/src/adv_monitor.c
index 27d5f3308..bf7f2bed3 100644
--- a/src/adv_monitor.c
+++ b/src/adv_monitor.c
@@ -772,7 +772,7 @@ static bool parse_rssi_and_timeout(struct adv_monitor *monitor,
int16_t l_rssi = ADV_MONITOR_UNSET_RSSI;
uint16_t h_rssi_timeout = ADV_MONITOR_UNSET_TIMEOUT;
uint16_t l_rssi_timeout = ADV_MONITOR_UNSET_TIMEOUT;
- int16_t sampling_period = ADV_MONITOR_UNSET_SAMPLING_PERIOD;
+ uint16_t sampling_period = ADV_MONITOR_UNSET_SAMPLING_PERIOD;
uint16_t adapter_id = monitor->app->manager->adapter_id;
/* Extract RSSIHighThreshold */