PUD: consistent use of external state and resulting update interval
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 15 Mar 2012 09:34:35 +0000 (10:34 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 15 Mar 2012 10:31:16 +0000 (11:31 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/pud/src/receiver.c

index 3d81075..be546f3 100644 (file)
@@ -157,7 +157,7 @@ static void txToAllOlsrInterfaces(TimedTxInterface interfaces) {
        unsigned long long updateInterval;
 
        updateInterval =
-                       (getExternalState() == MOVEMENT_STATE_MOVING) ? getUpdateIntervalMoving() : getUpdateIntervalStationary();
+                       (getExternalState() == MOVEMENT_STATE_STATIONARY) ? getUpdateIntervalStationary() : getUpdateIntervalMoving();
 
        (void) pthread_mutex_lock(&transmitGpsInformation.mutex);