fix compile

This commit is contained in:
matthias.ringwald@gmail.com 2014-08-11 22:00:51 +00:00
parent f9a298a27e
commit d27c46f584
2 changed files with 3 additions and 2 deletions

View File

@ -578,9 +578,10 @@ static void gatt_client_run(){
linked_item_t *it;
for (it = (linked_item_t *) gatt_client_connections; it ; it = it->next){
gatt_client_t * peripheral = (gatt_client_t *) it;
if (!l2cap_can_send_fixed_channel_packet_now(peripheral->handle)) return;
gatt_client_t * peripheral = (gatt_client_t *) it;
// printf("- handle_peripheral_list, mtu state %u, client state %u\n", peripheral->mtu_state, peripheral->gatt_client_state);
switch (peripheral->mtu_state) {

View File

@ -857,7 +857,7 @@ static void sm_run(void){
// assert that we can send either one
if (!hci_can_send_command_packet_now()) return;
if (!l2cap_can_send_fixed_channel_packet_now(connection->handle)) return;
if (!l2cap_can_send_fixed_channel_packet_now(connection->sm_handle)) return;
sm_key_t plaintext;