PUD: rxBufferPrefixLength is a static const
authorFerry Huberts <f.huberts@mindef.nl>
Mon, 27 Jun 2011 11:10:52 +0000 (13:10 +0200)
committerFerry Huberts <f.huberts@mindef.nl>
Tue, 28 Jun 2011 11:41:07 +0000 (13:41 +0200)
Signed-off-by: Ferry Huberts <f.huberts@mindef.nl>
lib/pud/src/receiver.c

index d3c8d82..e5dcd7f 100644 (file)
@@ -416,9 +416,10 @@ static TristateBoolean detemineMoving(PositionUpdateEntry * posAvgEntry,
  - true otherwise
  */
 bool receiverUpdateGpsInformation(unsigned char * rxBuffer, size_t rxCount) {
-       bool retval = false;
        static const char * rxBufferPrefix = "$GP";
-       size_t rxBufferPrefixLength = strlen(rxBufferPrefix);
+       static const size_t rxBufferPrefixLength = 3;
+
+       bool retval = false;
        PositionUpdateEntry * incomingEntry;
        MovementState currentState = state.state;
        MovementState newState = MOVING;