summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <erdgeist@bauklotz.fritz.box>2016-08-14 00:58:47 +0200
committererdgeist <erdgeist@bauklotz.fritz.box>2016-08-14 00:58:47 +0200
commit3c8653b300255e514839025f710ea8eaca28e626 (patch)
tree35aeb00da02a9663eca4636ceee201ce1bcb0393
parent4648c02d78e6e45c65b9b78a22761c937a24455f (diff)
Avoid miss-fires
-rw-r--r--engine.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/engine.c b/engine.c
index 4410a54..0d92b50 100644
--- a/engine.c
+++ b/engine.c
@@ -126,6 +126,10 @@ engine_handle_point(LPoint * p, uint32_t monotime)
126 } 126 }
127 } 127 }
128 128
129 /* Avoid miss-fires, check if offset is in range -5% - +105% */
130 if (offs>68812 || offs<-3276)
131 return;
132
129 if (saite == -1) 133 if (saite == -1)
130 return; 134 return;
131 135