diff options
Diffstat (limited to 'ppmsum.cpp')
-rw-r--r-- | ppmsum.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -21,12 +21,13 @@ void PPMSum::irq() { if(sr & 0x01) { // Timeout. - // TODO: Indicate failsafe. + synced = false; } else if(sr & 0x02) { // Period. if(TIM4.CCR1 > 5000) { + synced = true; index = 0; } else { index++; |