fishpepper / OpenSky

opensource implementation of the frsky protocol for multiple targets (D4R-ii, VD5M)
http://fishpepper.de/projects/opensky/
GNU General Public License v3.0
155 stars 69 forks source link

Missing def on Preprocessor condition #19

Closed squarecode closed 7 years ago

squarecode commented 7 years ago

Hello! I had a minor issue while inverting the ppm output on the stm32f1 arch. Line 83 in hal_ppm.c has to be modified from #if ... to #ifdef ...

`

if PPM_INVERTED

tim_oc_init.TIM_OCMode = TIM_OCMode_PWM2;

else

tim_oc_init.TIM_OCMode=TIM_OCMode_PWM1;

endif // PPM_INVERTED

`

Thanks for the otherwise very nice Code!