pud: posavg: fix typo in calculateAngle
authorFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 16 Jul 2012 15:55:57 +0000 (17:55 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 16 Jul 2012 16:02:14 +0000 (18:02 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/pud/src/posAvg.c

index a720f2c..e3084e8 100644 (file)
@@ -460,7 +460,7 @@ static void addAngleComponents(AngleComponents * dst, AngleComponents * src, boo
                return;
 
        dst->x += add ? src->x : -src->x;
-       src->y += add ? src->y : -src->y;
+       dst->y += add ? src->y : -src->y;
 }
 
 /**