Removed cli play_sound command for F1 targets

This commit is contained in:
Martin Budden 2016-11-25 11:55:55 +00:00
parent 6f7fc80db6
commit d4b8ffe008
1 changed files with 6 additions and 4 deletions

View File

@ -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),
@ -3144,11 +3148,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;
@ -3178,8 +3180,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)
{