mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
Cleanup declarations of failsafeCnt so that it is only in failsafe.h and
failsafe.c. Now it is clear from the list of includes that each serialrx provider supports failsafe.
This commit is contained in:
parent
6a9d38783c
commit
8477b45061
5 changed files with 8 additions and 7 deletions
|
@ -3,6 +3,8 @@
|
|||
#include "mw.h"
|
||||
|
||||
#include "rx_sbus.h"
|
||||
#include "rx_sumd.h"
|
||||
#include "rx_spektrum.h"
|
||||
#include "rx_common.h"
|
||||
#include "telemetry_common.h"
|
||||
#include "boardalignment.h"
|
||||
|
|
2
src/mw.c
2
src/mw.c
|
@ -9,6 +9,8 @@
|
|||
#include "typeconversion.h"
|
||||
#include "rx_common.h"
|
||||
#include "rx_sbus.h"
|
||||
#include "rx_sumd.h"
|
||||
#include "rx_spektrum.h"
|
||||
#include "failsafe.h"
|
||||
|
||||
// June 2013 V2.2-dev
|
||||
|
|
1
src/mw.h
1
src/mw.h
|
@ -73,7 +73,6 @@ enum {
|
|||
|
||||
extern int16_t axisPID[3];
|
||||
extern int16_t rcCommand[4];
|
||||
extern int16_t failsafeCnt;
|
||||
|
||||
extern int16_t debug[4];
|
||||
extern uint16_t acc_1G;
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
#include "drivers/serial_uart.h"
|
||||
#include "runtime_config.h"
|
||||
|
||||
#include "failsafe.h"
|
||||
|
||||
#include "rx_common.h"
|
||||
#include "rx_sbus.h"
|
||||
|
||||
|
@ -23,9 +25,6 @@ static bool sbusFrameDone = false;
|
|||
static void sbusDataReceive(uint16_t c);
|
||||
static uint16_t sbusReadRawRC(rxConfig_t *rxConfig, uint8_t chan);
|
||||
|
||||
// external vars (ugh)
|
||||
extern int16_t failsafeCnt;
|
||||
|
||||
static uint32_t sbusChannelData[SBUS_MAX_CHANNEL];
|
||||
|
||||
//rxConfig_t *rxConfig;
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
#include "drivers/serial_uart.h"
|
||||
#include "runtime_config.h"
|
||||
|
||||
#include "failsafe.h"
|
||||
|
||||
#include "rx_common.h"
|
||||
#include "rx_spektrum.h"
|
||||
|
||||
|
@ -29,9 +31,6 @@ volatile uint8_t spekFrame[SPEK_FRAME_SIZE];
|
|||
static void spektrumDataReceive(uint16_t c);
|
||||
static uint16_t spektrumReadRawRC(rxConfig_t *rxConfig, uint8_t chan);
|
||||
|
||||
// external vars (ugh)
|
||||
extern int16_t failsafeCnt;
|
||||
|
||||
void spektrumInit(rxConfig_t *rxConfig, rcReadRawDataPtr *callback)
|
||||
{
|
||||
switch (rxConfig->serialrx_type) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue