summaryrefslogtreecommitdiff
path: root/digital/beacon/src/laser.c
diff options
context:
space:
mode:
Diffstat (limited to 'digital/beacon/src/laser.c')
-rw-r--r--digital/beacon/src/laser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/digital/beacon/src/laser.c b/digital/beacon/src/laser.c
index b18167bf..245791b6 100644
--- a/digital/beacon/src/laser.c
+++ b/digital/beacon/src/laser.c
@@ -131,6 +131,9 @@ ISR(TIMER3_CAPT_vect)
/* Check which kind of edge triggered the interrupt */
current_edge = laser_get_edge_type();
+
+ /* Could be a bounce so inhibit the latest angle confirmation */
+ laser_inhibit_angle_confirmation();
switch(current_edge)
{
@@ -142,9 +145,6 @@ ISR(TIMER3_CAPT_vect)
/* Common rising edge of a reflector */
case LASER_RISING_EDGE:
- /* Could be a bounce so inhibit the latest angle confirmation */
- laser_inhibit_angle_confirmation();
-
/* Recompute the angle value */
virtual_angle = (virtual_angle + ICR3) / 2;
break;