1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 22:35:23 +03:00

Disable output of DSHOT when motors disabled

This commit is contained in:
blckmn 2016-11-09 20:29:32 +11:00
parent 4355d675b2
commit ec92be725b
5 changed files with 29 additions and 1 deletions

View file

@ -75,6 +75,8 @@ typedef struct {
#endif
} motorDmaOutput_t;
extern bool pwmMotorsEnabled;
struct timerHardware_s;
typedef void(*pwmWriteFuncPtr)(uint8_t index, uint16_t value); // function pointer used to write motors
typedef void(*pwmCompleteWriteFuncPtr)(uint8_t motorCount); // function pointer used after motors are written