HAL_PX4: handle MODE_PWM_NONE enum

This commit is contained in:
Andrew Tridgell 2018-03-17 08:49:24 +11:00
parent 3c5c77889c
commit 2933d4dd35

View File

@ -628,6 +628,7 @@ void PX4RCOutput::set_output_mode(uint16_t mask, enum output_mode mode)
case MODE_PWM_DSHOT300:
case MODE_PWM_DSHOT600:
case MODE_PWM_DSHOT1200:
case MODE_PWM_NONE:
// treat as normal PWM for now
hal.console->printf("DShot not supported\n");
FALLTHROUGH;