PUD: minor fix of not using nodeId directly
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 2 Feb 2012 11:52:00 +0000 (12:52 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 14 Feb 2012 13:32:58 +0000 (14:32 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/pud/src/configuration.c

index 80df175..1d08e76 100644 (file)
@@ -329,7 +329,7 @@ static bool setupNodeIdBinaryMAC(void) {
 static bool setupNodeIdBinaryLongLong(unsigned long long min,
                unsigned long long max, unsigned int bytes) {
        if (!nodeIdBinarySet) {
-               if (!readULL(PUD_NODE_ID_NAME, (char *) &nodeId[0],
+               if (!readULL(PUD_NODE_ID_NAME, (char *) getNodeId(),
                                &nodeIdBinary.longValue)) {
                        return false;
                }