mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-22 07:45:29 +03:00
decouple failsafe from the rest of the system.
Note: the pwm_common driver has a dependency on the main failsafe code, the solution is probably to move some of the code into rx_pwm.
This commit is contained in:
parent
aef28c1c08
commit
e969d184e6
29 changed files with 224 additions and 119 deletions
13
src/flight_common.c
Normal file
13
src/flight_common.c
Normal file
|
@ -0,0 +1,13 @@
|
|||
#include "board.h"
|
||||
#include "mw.h"
|
||||
|
||||
#include "runtime_config.h"
|
||||
|
||||
#include "flight_common.h"
|
||||
|
||||
|
||||
void mwDisarm(void)
|
||||
{
|
||||
if (f.ARMED)
|
||||
f.ARMED = 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue