1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 17:25:18 +03:00

Show turtle mode in configurator only if dshot is active

This commit is contained in:
luca 2021-03-10 17:09:33 +01:00
parent 561f13bc83
commit 0132c471c9

View file

@ -33,6 +33,8 @@
#include "io/osd.h"
#include "drivers/pwm_output.h"
#include "sensors/diagnostics.h"
#include "sensors/sensors.h"
@ -309,7 +311,7 @@ void initActiveBoxIds(void)
#endif
#ifdef USE_DSHOT
if(STATE(MULTIROTOR))
if(STATE(MULTIROTOR) && isMotorProtocolDshot())
activeBoxIds[activeBoxIdCount++] = BOXFLIPOVERAFTERCRASH;
#endif
}