From b03d59f8c600437c0e27221827e97e78e073b355 Mon Sep 17 00:00:00 2001 From: Jakub Tyszkowski Date: Tue, 27 May 2014 12:15:31 +0200 Subject: [PATCH] android/gatt: Use proper variable to store response length This fixes confirmations being not send. --- android/gatt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/gatt.c b/android/gatt.c index d97eb8026..9234b467e 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -5103,7 +5103,7 @@ static void att_handler(const uint8_t *ipdu, uint16_t len, gpointer user_data) * registered for this indication, event will be send in * handle_notification */ - length = enc_confirmation(opdu, sizeof(opdu)); + resp_length = enc_confirmation(opdu, sizeof(opdu)); status = 0; break; case ATT_OP_HANDLE_NOTIFY: -- 2.47.3