Master/SBUS Module now working

This commit is contained in:
bsongis
2014-09-29 07:47:08 +02:00
parent 440cd6a162
commit f57444f1cb
9 changed files with 50 additions and 38 deletions
+1 -1
View File
@@ -257,7 +257,7 @@ extern "C" void TC3_IRQHandler() //capture ppm in at 2MHz
else {
if (ppmInState>0 && ppmInState<=16) {
if (val>800 && val<2200) { // if valid pulse-width range
ppmInValid = 100;
ppmInValid = PPM_IN_VALID_TIMEOUT;
g_ppmIns[ppmInState++ - 1] = (int16_t)(val - 1500)*(g_eeGeneral.PPM_Multiplier+10)/10; //+-500 != 512, but close enough.
}
else {