Merge pull request #1663 from martinbudden/bf_cli_playsound
Removed cli play_sound command for F1 targets
This commit is contained in:
commit
87ea78db86
|
@ -127,7 +127,9 @@ static void cliExit(char *cmdline);
|
|||
static void cliFeature(char *cmdline);
|
||||
static void cliMotor(char *cmdline);
|
||||
static void cliName(char *cmdline);
|
||||
#if (FLASH_SIZE > 128)
|
||||
static void cliPlaySound(char *cmdline);
|
||||
#endif
|
||||
static void cliProfile(char *cmdline);
|
||||
static void cliRateProfile(char *cmdline);
|
||||
static void cliReboot(void);
|
||||
|
@ -331,8 +333,10 @@ const clicmd_t cmdTable[] = {
|
|||
CLI_COMMAND_DEF("mmix", "custom motor mixer", NULL, cliMotorMix),
|
||||
CLI_COMMAND_DEF("motor", "get/set motor",
|
||||
"<index> [<value>]", cliMotor),
|
||||
#if (FLASH_SIZE > 128)
|
||||
CLI_COMMAND_DEF("play_sound", NULL,
|
||||
"[<index>]\r\n", cliPlaySound),
|
||||
#endif
|
||||
CLI_COMMAND_DEF("profile", "change profile",
|
||||
"[<index>]", cliProfile),
|
||||
CLI_COMMAND_DEF("rateprofile", "change rate profile", "[<index>]", cliRateProfile),
|
||||
|
@ -3150,11 +3154,9 @@ static void cliMotor(char *cmdline)
|
|||
cliPrintf("motor %d: %d\r\n", motor_index, convertMotorToExternal(motor_disarmed[motor_index]));
|
||||
}
|
||||
|
||||
#if (FLASH_SIZE > 128)
|
||||
static void cliPlaySound(char *cmdline)
|
||||
{
|
||||
#if (FLASH_SIZE <= 64) && !defined(CLI_MINIMAL_VERBOSITY)
|
||||
UNUSED(cmdline);
|
||||
#else
|
||||
int i;
|
||||
const char *name;
|
||||
static int lastSoundIdx = -1;
|
||||
|
@ -3184,8 +3186,8 @@ static void cliPlaySound(char *cmdline)
|
|||
beeperSilence();
|
||||
cliPrintf("Playing sound %d: %s\r\n", i, name);
|
||||
beeper(beeperModeForTableIndex(i));
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
static void cliProfile(char *cmdline)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue