PUD: only do an immediate transmit on an external state change
authorFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 31 Jan 2012 07:21:49 +0000 (08:21 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 31 Jan 2012 07:31:02 +0000 (08:31 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/pud/src/receiver.c

index 90fbcd2..7ce2339 100644 (file)
@@ -840,7 +840,7 @@ bool receiverUpdateGpsInformation(unsigned char * rxBuffer, size_t rxCount) {
                (void) pthread_mutex_unlock(&transmitGpsInformation.mutex);
        }
 
-       if (updateTransmitGpsInformation) {
+       if (externalStateChange) {
                TimedTxInterface interfaces = OLSR; /* always send over olsr */
                restartOlsrTimer();