Skip to content

Commit c73500d

Browse files
dimonomidcesantabot
authored andcommitted
Fix mgos_bt_gatts_send_indicate()
PUBLISHED_FROM=afa8848263bc781177acdaf8739323df71bda27e
1 parent 2c35dbf commit c73500d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/esp32/esp32_bt_gatts.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,8 +773,9 @@ bool mgos_bt_gatts_send_indicate(esp_gatt_if_t gatts_if, uint16_t conn_id,
773773

774774
if (empty) {
775775
/* Queue was empty, so send the indication/notification immediately */
776-
r = esp_ble_gatts_send_indicate(gatts_if, conn_id, attr_handle, value.len,
777-
(uint8_t *) value.p, need_confirm);
776+
r = esp_ble_gatts_send_indicate(gatts_if, conn_id, attr_handle,
777+
indp->value.len, (uint8_t *) indp->value.p,
778+
need_confirm);
778779
}
779780

780781
return r == ESP_OK;

0 commit comments

Comments
 (0)