summaryrefslogtreecommitdiff
path: root/ppmsum.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ppmsum.cpp')
-rw-r--r--ppmsum.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ppmsum.cpp b/ppmsum.cpp
index 3da7d78..75faa17 100644
--- a/ppmsum.cpp
+++ b/ppmsum.cpp
@@ -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++;