Skip to content

Commit

Permalink
no more warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
thelsing committed Aug 9, 2024
1 parent 7c85635 commit 5293dd8
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 20 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
cmake_policy(SET CMP0048 NEW)
project(knx VERSION 1.4)
cmake_minimum_required(VERSION 3.16)
project(knx VERSION 1.5)


add_subdirectory(examples/knx-linux)
add_subdirectory(examples/knx-linux-coupler)
Expand Down
2 changes: 1 addition & 1 deletion examples/knx-linux-coupler/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.16)
project(knx-linux-coupler VERSION 1.4)
project(knx-linux-coupler VERSION 1.5)
set(LIBRARIES_FROM_REFERENCES "")

set(SOURCES
Expand Down
2 changes: 0 additions & 2 deletions examples/knx-linux-coupler/fdsk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ int FdskCalculator::toBase32(uint8_t* in, long length, uint8_t*& out, bool usePa
char standardPaddingChar = '=';

int result = 0;
int count = 0;
int bufSize = 8;
int index = 0;
int size = 0; // size of temporary array
uint8_t* temp = nullptr;
Expand Down
2 changes: 1 addition & 1 deletion examples/knx-linux/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.16)
project(knx-linux VERSION 1.4)
project(knx-linux VERSION 1.5)
set(LIBRARIES_FROM_REFERENCES "")

set(SOURCES
Expand Down
2 changes: 0 additions & 2 deletions examples/knx-linux/fdsk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ int FdskCalculator::toBase32(uint8_t* in, long length, uint8_t*& out, bool usePa
char standardPaddingChar = '=';

int result = 0;
int count = 0;
int bufSize = 8;
int index = 0;
int size = 0; // size of temporary array
uint8_t* temp = nullptr;
Expand Down
2 changes: 1 addition & 1 deletion examples/knxPython/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.16)
project(knx VERSION 1.4)
project(knx VERSION 1.5)

add_subdirectory(pybind11)

Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "knx",
"version": "1.2.0",
"version": "1.5.0",
"dependencies": {
},
"description": "knx stack",
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=knx
version=1.2.0
version=1.5.0
author=Thomas Kunze, et. al.
maintainer=Thomas Kunze
sentence=knx stack
Expand Down
5 changes: 2 additions & 3 deletions src/knx/bau07B0.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
using namespace std;

Bau07B0::Bau07B0(Platform& platform)
: BauSystemBDevice(platform),
_dlLayer(_deviceObj, _netLayer.getInterface(), _platform, *this, (ITpUartCallBacks&) *this, (DataLinkLayerCallbacks*) this),
DataLinkLayerCallbacks()
: BauSystemBDevice(platform), DataLinkLayerCallbacks(),
_dlLayer(_deviceObj, _netLayer.getInterface(), _platform, *this, (ITpUartCallBacks&) *this, (DataLinkLayerCallbacks*) this)
#ifdef USE_CEMI_SERVER
, _cemiServer(*this)
#endif
Expand Down
8 changes: 3 additions & 5 deletions src/knx/bau091A.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@ implement PID_COUPLER_SERVICES_CONTROL 03_05_01 4.4.7
*/

Bau091A::Bau091A(Platform& platform)
: BauSystemBCoupler(platform),
: BauSystemBCoupler(platform), DataLinkLayerCallbacks(),
_routerObj(memory(), 0x200, 0x2000), // the Filtertable of 0x091A IP Routers is fixed at 0x200 and 0x2000 long
_ipParameters(_deviceObj, platform),
_dlLayerPrimary(_deviceObj, _ipParameters, _netLayer.getPrimaryInterface(), _platform, *this, (DataLinkLayerCallbacks*) this),
_dlLayerSecondary(_deviceObj, _netLayer.getSecondaryInterface(), platform, *this, (ITpUartCallBacks&) *this, (DataLinkLayerCallbacks*) this),
DataLinkLayerCallbacks()
_dlLayerSecondary(_deviceObj, _netLayer.getSecondaryInterface(), platform, *this, (ITpUartCallBacks&) *this, (DataLinkLayerCallbacks*) this)
#ifdef USE_CEMI_SERVER
,
_cemiServer(*this)
, _cemiServer(*this)
#endif
{
// Before accessing anything of the router object they have to be initialized according to the used medium
Expand Down
2 changes: 1 addition & 1 deletion src/knx/ip_data_link_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@ bool IpDataLinkLayer::isSendLimitReached()
uint32_t timeBaseDiff = _frameCountTimeBase - curTime;
if(timeBaseDiff > 10)
timeBaseDiff = 10;
for(int i = 0; i < timeBaseDiff ; i++)
for(uint32_t i = 0; i < timeBaseDiff ; i++)
{
_frameCountBase++;
_frameCountBase = _frameCountBase % 10;
Expand Down
2 changes: 1 addition & 1 deletion src/knx/tpuart_data_link_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ void TpUartDataLinkLayer::requestConfig()
_platform.writeUart(0x0); // dummy, see NCN5120 datasheet
#else
_platform.writeUart(U_MXRSTCNT);
_platform.writeUart(((_repetitions & 0xF0) << 1) || (_repetitions & 0x0F));
_platform.writeUart(((_repetitions & 0xF0) << 1) | (_repetitions & 0x0F));
#endif
}
}
Expand Down

0 comments on commit 5293dd8

Please sign in to comment.