From c85aa9d1268544aa9708636cb571bff922490a90 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Fri, 13 Dec 2013 13:38:11 +0100 Subject: [PATCH] android/bluetooth: Fix missing property change notification After setting new discoverable timeout property change notification with new value should be send. --- android/bluetooth.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android/bluetooth.c b/android/bluetooth.c index 4bb2c9281..c60c9a278 100644 --- a/android/bluetooth.c +++ b/android/bluetooth.c @@ -1387,6 +1387,10 @@ static uint8_t set_adapter_discoverable_timeout(const void *buf, uint16_t len) /* TODO: This should be in some storage */ memcpy(&adapter.discoverable_timeout, timeout, sizeof(uint32_t)); + send_adapter_property(HAL_PROP_ADAPTER_DISC_TIMEOUT, + sizeof(adapter.discoverable_timeout), + &adapter.discoverable_timeout); + return HAL_STATUS_SUCCESS; } -- 2.47.3