WIP: More new BLE
This commit is contained in:
parent
a9212c5a3a
commit
58f379dc18
10 changed files with 301 additions and 22 deletions
12
Game/Game.h
12
Game/Game.h
|
@ -44,6 +44,18 @@ typedef enum
|
|||
MAXIMUM_TEAM_ID = 7
|
||||
} TeamID_t;
|
||||
|
||||
inline bool Is_Valid_Team_ID(uint8_t team_ID)
|
||||
{
|
||||
bool result = false;
|
||||
|
||||
if (team_ID <= MAXIMUM_TEAM_ID)
|
||||
{
|
||||
result = true;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
__attribute__((always_inline)) static inline SystemKResult_T Set_Team_With_Audio_Feedback(uint8_t team_ID)
|
||||
{
|
||||
static uint8_t Team_ID = 0; // This is static because AUDIO_PRONOUNCE_NUMBER_0_TO_100 needs a *pointer*.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue