diff mbox series

[BlueZ,v6,5/6] adv_monitor: Change sampling period to uint16_t

Message ID 20211120072449.BlueZ.v6.5.Ib85d2d946d853ea8c879dc922ad8e47587d3c603@changeid
State Superseded
Headers show
Series [BlueZ,v6,1/6] doc: Introduce the Adv Monitor Device Found/Lost events | expand

Commit Message

Manish Mandlik Nov. 20, 2021, 3:29 p.m. UTC
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>
---

(no changes since v5)

Changes in v5:
- New patch in the series. Update 'sampling_period' data type to the
  correct type.

 src/adv_monitor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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 */