Massive cleaning (#5538)
This commit is contained in:
+7
-13
@@ -288,8 +288,7 @@
|
||||
|
||||
#include "debug.h"
|
||||
|
||||
#if defined(PCBFLAMENCO)
|
||||
#elif defined(PCBTARANIS) || defined(PCBHORUS)
|
||||
#if defined(PCBTARANIS) || defined(PCBHORUS)
|
||||
#define SWSRC_THR SWSRC_SF2
|
||||
#define SWSRC_GEA SWSRC_SG2
|
||||
#define SWSRC_ID0 SWSRC_SA0
|
||||
@@ -325,11 +324,6 @@ void memswap(void * a, void * b, uint8_t size);
|
||||
#define IS_POT_WITHOUT_DETENT(x) (false)
|
||||
#define IS_POT_SLIDER_AVAILABLE(x) (true)
|
||||
#define IS_MULTIPOS_CALIBRATED(cal) (false)
|
||||
#elif defined(PCBFLAMENCO)
|
||||
#define IS_POT_MULTIPOS(x) (false)
|
||||
#define IS_POT_WITHOUT_DETENT(x) (false)
|
||||
#define IS_POT_SLIDER_AVAILABLE(x) (true)
|
||||
#define IS_MULTIPOS_CALIBRATED(cal) (false)
|
||||
#else
|
||||
#define IS_POT_MULTIPOS(x) (false)
|
||||
#define IS_POT_WITHOUT_DETENT(x) (true)
|
||||
@@ -538,7 +532,7 @@ extern uint8_t channel_order(uint8_t x);
|
||||
#define SPLASH_TIMEOUT 0 /* we use the splash duration to load stuff from the SD */
|
||||
#elif defined(FSPLASH)
|
||||
#define SPLASH_TIMEOUT (g_eeGeneral.splashMode == 0 ? 60000/*infinite=10mn*/ : ((4*100) * (g_eeGeneral.splashMode & 0x03)))
|
||||
#elif defined(PCBTARANIS) || defined(PCBFLAMENCO)
|
||||
#elif defined(PCBTARANIS)
|
||||
#define SPLASH_TIMEOUT (g_eeGeneral.splashMode==-4 ? 1500 : (g_eeGeneral.splashMode<=0 ? (400-g_eeGeneral.splashMode*200) : (400-g_eeGeneral.splashMode*100)))
|
||||
#else
|
||||
#define SPLASH_TIMEOUT (4*100) // 4 seconds
|
||||
@@ -565,7 +559,7 @@ extern uint8_t channel_order(uint8_t x);
|
||||
|
||||
#define HEART_TIMER_10MS 1
|
||||
#define HEART_TIMER_PULSES 2 // when multiple modules this is the first one
|
||||
#if defined(PCBTARANIS) || defined(PCBFLAMENCO) || defined(PCBHORUS)
|
||||
#if defined(PCBTARANIS) || defined(PCBHORUS)
|
||||
#define HEART_WDT_CHECK (HEART_TIMER_10MS + (HEART_TIMER_PULSES << 0) + (HEART_TIMER_PULSES << 1))
|
||||
#else
|
||||
#define HEART_WDT_CHECK (HEART_TIMER_10MS + HEART_TIMER_PULSES)
|
||||
@@ -608,7 +602,7 @@ int zchar2str(char *dest, const char *src, int size);
|
||||
#include "keys.h"
|
||||
#include "pwr.h"
|
||||
|
||||
#if defined(PCBTARANIS) || defined(PCBFLAMENCO) || defined(PCBHORUS)
|
||||
#if defined(PCBTARANIS) || defined(PCBHORUS)
|
||||
div_t switchInfo(int switchPosition);
|
||||
extern uint8_t potsPos[NUM_XPOTS];
|
||||
#endif
|
||||
@@ -719,7 +713,7 @@ void logicalSwitchesReset();
|
||||
#define LS_RECURSIVE_EVALUATION_RESET() s_last_switch_used = 0
|
||||
#endif
|
||||
|
||||
#if defined(PCBTARANIS) || defined(PCBFLAMENCO) || defined(PCBHORUS)
|
||||
#if defined(PCBTARANIS) || defined(PCBHORUS)
|
||||
void getSwitchesPosition(bool startup);
|
||||
#else
|
||||
#define getSwitchesPosition(...)
|
||||
@@ -1284,7 +1278,7 @@ enum AUDIO_SOUNDS {
|
||||
AU_STICK3_MIDDLE,
|
||||
AU_STICK4_MIDDLE,
|
||||
#endif
|
||||
#if defined(PCBTARANIS) || defined(PCBFLAMENCO) || defined(PCBHORUS)
|
||||
#if defined(PCBTARANIS) || defined(PCBHORUS)
|
||||
AU_POT1_MIDDLE,
|
||||
AU_POT2_MIDDLE,
|
||||
AU_SLIDER1_MIDDLE,
|
||||
@@ -1435,7 +1429,7 @@ union ReusableBuffer
|
||||
int16_t loVals[NUM_STICKS+NUM_POTS+NUM_SLIDERS+NUM_MOUSE_ANALOGS];
|
||||
int16_t hiVals[NUM_STICKS+NUM_POTS+NUM_SLIDERS+NUM_MOUSE_ANALOGS];
|
||||
uint8_t state;
|
||||
#if defined(PCBTARANIS) || defined(PCBFLAMENCO) || defined(PCBHORUS)
|
||||
#if defined(PCBTARANIS) || defined(PCBHORUS)
|
||||
struct {
|
||||
uint8_t stepsCount;
|
||||
int16_t steps[XPOTS_MULTIPOS_COUNT];
|
||||
|
||||
Reference in New Issue
Block a user