fix daemon event generated by rfcomm

This commit is contained in:
matthias.ringwald@gmail.com 2014-01-11 20:17:33 +00:00
parent e17cb0db6c
commit c57c878789

View File

@ -1724,7 +1724,7 @@ static void rfcomm_channel_state_machine(rfcomm_channel_t *channel, rfcomm_chann
break; break;
case CH_EVT_RCVD_CREDITS: { case CH_EVT_RCVD_CREDITS: {
// notify daemon -> might trigger re-try of parked connections // notify daemon -> might trigger re-try of parked connections
uint8_t event[1] = { DAEMON_EVENT_NEW_RFCOMM_CREDITS }; uint8_t event[2] = { DAEMON_EVENT_NEW_RFCOMM_CREDITS, 0 };
(*app_packet_handler)(channel->connection, DAEMON_EVENT_PACKET, channel->rfcomm_cid, event, sizeof(event)); (*app_packet_handler)(channel->connection, DAEMON_EVENT_PACKET, channel->rfcomm_cid, event, sizeof(event));
break; break;
} }