mirror of
https://github.com/thelsing/knx.git
synced 2025-08-17 13:47:28 +02:00
Fix cemi server and add missing MASK_VERSION definitions
This commit is contained in:
parent
e091ef6536
commit
720c72c3c6
@ -34,6 +34,7 @@ lib_deps =
|
||||
knx
|
||||
|
||||
build_flags =
|
||||
-DMASK_VERSION=0x57B0
|
||||
-Wno-unknown-pragmas
|
||||
|
||||
;---------------------------------------------------------
|
||||
@ -48,4 +49,5 @@ lib_deps =
|
||||
knx
|
||||
|
||||
build_flags =
|
||||
-DMASK_VERSION=0x57B0
|
||||
-Wno-unknown-pragmas
|
||||
|
@ -47,6 +47,7 @@ lib_deps =
|
||||
knx
|
||||
|
||||
build_flags =
|
||||
-DMASK_VERSION=0x57B0
|
||||
-Wno-unknown-pragmas
|
||||
|
||||
;---------------------------------------------------------
|
||||
@ -65,4 +66,5 @@ lib_deps =
|
||||
knx
|
||||
|
||||
build_flags =
|
||||
-DMASK_VERSION=0x57B0
|
||||
-Wno-unknown-pragmas
|
||||
|
@ -56,10 +56,10 @@ void CemiServer::dataConfirmationToTunnel(CemiFrame& frame)
|
||||
|
||||
void CemiServer::dataIndicationToTunnel(CemiFrame& frame)
|
||||
{
|
||||
bool isRf = _dataLinkLayer->isOpenMedium();
|
||||
bool isRf = _dataLinkLayer->mediumType() == DptMedium::KNX_RF;
|
||||
uint8_t data[frame.dataLength() + (isRf ? 10 : 0)];
|
||||
|
||||
if (_dataLinkLayer->isOpenMedium())
|
||||
if (isRf)
|
||||
{
|
||||
data[0] = L_data_ind; // Message Code
|
||||
data[1] = 0x0A; // Total additional info length
|
||||
@ -90,7 +90,7 @@ void CemiServer::dataIndicationToTunnel(CemiFrame& frame)
|
||||
|
||||
void CemiServer::frameReceived(CemiFrame& frame)
|
||||
{
|
||||
bool isRf = _dataLinkLayer->isOpenMedium();
|
||||
bool isRf = _dataLinkLayer->mediumType() == DptMedium::KNX_RF;
|
||||
|
||||
switch(frame.messageCode())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user