From 8f1bb200e4774945633dec40517ff68073259161 Mon Sep 17 00:00:00 2001 From: Sathya Laufer Date: Thu, 21 Dec 2017 18:09:11 +0100 Subject: [PATCH] Fixed: New Intertechno address is sent wrongly --- CMakeLists.txt | 35 +++++++++++++++++++++++++++++++++++ src/MyPacket.cpp | 2 +- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..3b1e34c --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,35 @@ +cmake_minimum_required(VERSION 3.8) +project(homegear_intertechno) + +set(CMAKE_CXX_STANDARD 11) + +set(SOURCE_FILES + src/PhysicalInterfaces/Coc.cpp + src/PhysicalInterfaces/Coc.h + src/PhysicalInterfaces/Cul.cpp + src/PhysicalInterfaces/Cul.h + src/PhysicalInterfaces/Cunx.cpp + src/PhysicalInterfaces/Cunx.h + src/PhysicalInterfaces/IIntertechnoInterface.cpp + src/PhysicalInterfaces/IIntertechnoInterface.h + src/PhysicalInterfaces/TiCc1100.cpp + src/PhysicalInterfaces/TiCc1100.h + src/Factory.cpp + src/Factory.h + src/GD.cpp + src/GD.h + src/Interfaces.cpp + src/Interfaces.h + src/MyCentral.cpp + src/MyCentral.h + src/MyFamily.cpp + src/MyFamily.h + src/MyPacket.cpp + src/MyPacket.h + src/MyPeer.cpp + src/MyPeer.h + config.h) + +add_custom_target(homegear COMMAND ../../makeAll.sh SOURCES ${SOURCE_FILES}) + +add_library(homegear_intertechno ${SOURCE_FILES}) \ No newline at end of file diff --git a/src/MyPacket.cpp b/src/MyPacket.cpp index 58ebc28..0a01e74 100644 --- a/src/MyPacket.cpp +++ b/src/MyPacket.cpp @@ -174,7 +174,7 @@ std::string MyPacket::hexString() if(_senderAddress & 0xFFFFFC00) { _packet.reserve(32); - for(int32_t i = 29; i >= 4; i--) + for(int32_t i = 25; i >= 0; i--) { _packet.push_back(_senderAddress & (1 << i) ? '1' : '0'); }