mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
switch case cleanup
Co-Authored-By: Petr Ledvina <ledvinap@gmail.com> Co-Authored-By: haslinghuis <mark@numloq.nl>
This commit is contained in:
parent
c8a6f2a60c
commit
0088eb5f21
7 changed files with 2 additions and 24 deletions
|
@ -160,18 +160,14 @@ bool dshotStreamingCommandsAreEnabled(void)
|
|||
static bool dshotCommandsAreEnabled(dshotCommandType_e commandType)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
switch (commandType) {
|
||||
case DSHOT_CMD_TYPE_BLOCKING:
|
||||
ret = !motorIsEnabled();
|
||||
|
||||
break;
|
||||
case DSHOT_CMD_TYPE_INLINE:
|
||||
ret = dshotStreamingCommandsAreEnabled();
|
||||
|
||||
break;
|
||||
default:
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue