mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-28 06:39:49 +00:00
Setting correct length for BTSTACK_EVENT_STATE event.
The second byte of the data is the length of the remaining data (in this case the HCI_STATE_WORKING byte). This was passing 0 indicating that there was no data when in fact there was.
This commit is contained in:
parent
0f6940d34d
commit
a2366dc9d3
2
ble/sm.c
2
ble/sm.c
@ -1365,7 +1365,7 @@ static void sm_handle_encryption_result(uint8_t * data){
|
||||
// SM INIT FINISHED, start application code - TODO untangle that
|
||||
if (sm_client_packet_handler)
|
||||
{
|
||||
uint8_t event[] = { BTSTACK_EVENT_STATE, 0, HCI_STATE_WORKING };
|
||||
uint8_t event[] = { BTSTACK_EVENT_STATE, 1, HCI_STATE_WORKING };
|
||||
sm_client_packet_handler(HCI_EVENT_PACKET, 0, (uint8_t*) event, sizeof(event));
|
||||
}
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user