From a7db14a88c3ae5a1187174b5eae384fb50d55e58 Mon Sep 17 00:00:00 2001 From: Waldemar Porscha Date: Wed, 2 Mar 2022 12:55:40 +0100 Subject: [PATCH] version <-> apiVersion swapped --- src/knx/memory.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/knx/memory.cpp b/src/knx/memory.cpp index 83d112c..54b3f84 100644 --- a/src/knx/memory.cpp +++ b/src/knx/memory.cpp @@ -29,8 +29,8 @@ void Memory::readMemory() _freeList = new MemoryBlock(flashStart + metadataBlockSize, flashSize - metadataBlockSize); - uint16_t version = 0; - const uint8_t* buffer = popWord(version, flashStart); + uint16_t apiVersion = 0; + const uint8_t* buffer = popWord(apiVersion, flashStart); uint16_t manufacturerId = 0; buffer = popWord(manufacturerId, buffer); @@ -38,8 +38,8 @@ void Memory::readMemory() uint8_t hardwareType[LEN_HARDWARE_TYPE] = {0}; buffer = popByteArray(hardwareType, LEN_HARDWARE_TYPE, buffer); - uint16_t apiVersion = 0; - buffer = popWord(apiVersion, buffer); + uint16_t version = 0; + buffer = popWord(version, buffer); VersionCheckResult versionCheck = FlashAllInvalid;