PUD: fix getting the update flags in gpsFromOlsr
authorFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 25 Jun 2012 11:24:31 +0000 (13:24 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 25 Jun 2012 15:23:12 +0000 (17:23 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/pud/src/gpsConversion.c

index 1404066..9167e91 100644 (file)
@@ -79,7 +79,7 @@ unsigned int gpsFromOlsr(union olsr_message *olsrMessage,
 
        smask = getPositionUpdateSmask(olsrGpsMessage);
 
-       flags = getPositionUpdateSmask(olsrGpsMessage);
+       flags = getPositionUpdateFlags(olsrGpsMessage);
 
        if (flags & PUD_FLAGS_GATEWAY) {
                gateway[0] = '1';