Cleanup
This commit is contained in:
parent
6d8dab53e0
commit
edf80ba83b
5 changed files with 59 additions and 51 deletions
|
|
@ -26,7 +26,9 @@ static void Initializing_Entry(StateMachineContext_T * context);
|
|||
static void Initializing_Do(StateMachineContext_T * context);
|
||||
static void Initializing_Exit(StateMachineContext_T * context);
|
||||
|
||||
#ifdef PSOC_PLATFORM
|
||||
static const char *KLOG_TAG = "STATE_INITIALIZING";
|
||||
#endif // PSOC_PLATFORM
|
||||
|
||||
static bool Startup_Sound_Complete = false;
|
||||
|
||||
|
|
@ -109,9 +111,12 @@ static void Initializing_Exit(StateMachineContext_T * context)
|
|||
AudioAction_T audio_action = {.ID = AUDIO_SILENCE, .Data = (void *)0x00};
|
||||
Perform_Audio_Action(&audio_action);
|
||||
|
||||
//! \todo Add a menu item to change the weapon.
|
||||
#ifdef PSOC_PLATFORM
|
||||
//! \todo Add a menu item to change the weapon on the 2020TPC.
|
||||
// On the ESP32 platform, the weapon can be set via the USB stick.
|
||||
KLOG_WARN(KLOG_TAG, "Weapon hardcoded to the Dubuque Protocol!");
|
||||
uint8_t weapon_ID = DUBUQUE_PROTOCOL_ID;
|
||||
(void) SETTINGS_set_uint8_t(SYSTEMK_SETTING_WEAPONID, weapon_ID);
|
||||
(void) SETTINGS_Save();
|
||||
#endif // PSOC_PLATFORM
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue