1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-20 14:55:13 +03:00

Backup before 10bits trims function merge (instead of 8bits + subtrims)

This commit is contained in:
bsongis 2011-09-14 12:54:57 +00:00
parent f0fca34b7e
commit af73d05bbd
21 changed files with 560 additions and 122 deletions

View file

@ -323,6 +323,13 @@ void setupPulses()
setupPulsesTracerCtp1009();
break;
}
#if defined (DPPMPB7_HARDWARE)
//Don't know if its usefull for the other encoding type or if they have polarity option cannot test those
//Force an ouput compare to match the ppm polarity
if(PINB&(1<<7) && g_model.pulsePol)
TCCR1C |=(1<<FOC1C);
#endif
}
//inline int16_t reduceRange(int16_t x) // for in case we want to have room for subtrims