Added BLE events
This commit is contained in:
parent
58f379dc18
commit
82ec410264
10 changed files with 121 additions and 23 deletions
|
@ -54,6 +54,8 @@ static void Ready_Entry(StateMachineContext_T * context)
|
|||
}
|
||||
AudioAction_T audio_action = {.ID = AUDIO_PLAY_GAME_ON, .Data = (void *)0x00};
|
||||
Perform_Audio_Action(&audio_action);
|
||||
|
||||
Set_Health(MAX_HEALTH);
|
||||
}
|
||||
|
||||
//! Executes the Ready state.
|
||||
|
@ -90,6 +92,10 @@ static void Ready_Do(StateMachineContext_T * context)
|
|||
{
|
||||
Transition_For_Event(context, STATE_STARTING_GAME__RESPONDING, &Event);
|
||||
}
|
||||
else if (((BLE_Packet_T *)Event.Data)->Generic.type == BLE_PACKET_TYPE_EVENT)
|
||||
{
|
||||
HandleBLEEventPacket((BLE_EventPacket_T *)Event.Data, context);
|
||||
}
|
||||
else
|
||||
{
|
||||
BLE_FreePacketBuffer(Event.Data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue