Skip to content

Commit

Permalink
Fixed: New Intertechno address is sent wrongly
Browse files Browse the repository at this point in the history
  • Loading branch information
hfedcba committed Dec 21, 2017
1 parent 73c66b3 commit 8f1bb20
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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})
2 changes: 1 addition & 1 deletion src/MyPacket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 8f1bb20

Please sign in to comment.