1
0
Fork 0
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:
Dominic Clifton 2014-04-21 00:46:16 +01:00
parent aef28c1c08
commit e969d184e6
29 changed files with 224 additions and 119 deletions

13
src/flight_common.c Normal file
View 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;
}