diff options
author | erdgeist <erdgeist@bauklotz.fritz.box> | 2016-08-14 00:58:47 +0200 |
---|---|---|
committer | erdgeist <erdgeist@bauklotz.fritz.box> | 2016-08-14 00:58:47 +0200 |
commit | 3c8653b300255e514839025f710ea8eaca28e626 (patch) | |
tree | 35aeb00da02a9663eca4636ceee201ce1bcb0393 | |
parent | 4648c02d78e6e45c65b9b78a22761c937a24455f (diff) |
Avoid miss-fires
-rw-r--r-- | engine.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 | ||