Clean up PWM stick reads, remove double averaging (#5995)
We already do averaging in the normal anaIn/getADC(). Also according to Mike's and my own research we don't need the averaging. Tested on two X-Lites with PMW sticks
This commit is contained in:
committed by
Bertrand Songis
parent
17b4aa2466
commit
968e7233e5
@@ -409,7 +409,7 @@ uint16_t getAnalogValue(uint8_t index);
|
||||
#endif
|
||||
|
||||
#if NUM_PWMSTICKS > 0
|
||||
extern uint8_t sticks_pwm_disabled;
|
||||
extern bool sticks_pwm_disabled;
|
||||
#define STICKS_PWM_ENABLED() (sticks_pwm_disabled == false)
|
||||
void sticksPwmInit(void);
|
||||
void sticksPwmRead(uint16_t * values);
|
||||
|
||||
Reference in New Issue
Block a user