Taranis trainer driver support for 16CH input

This commit is contained in:
Andre Bernet
2014-02-28 13:07:45 +01:00
parent 89970776a6
commit 56cb40dd38
+1 -1
View File
@@ -130,7 +130,7 @@ extern "C" void TIM3_IRQHandler()
ppmInState = 1; // triggered
}
else {
if (ppmInState && (ppmInState<=8)) {
if (ppmInState && (ppmInState<=16)) {
if ((val>800) && (val<2200)) {
g_ppmIns[ppmInState++ - 1] = (int16_t)(val - 1500)*(g_eeGeneral.PPM_Multiplier+10)/10; //+-500 != 512, but close enough.
}