From 1d3648d3720cbc10e51398b84e5896f087e8424e Mon Sep 17 00:00:00 2001 From: Nanosonde <2073569+nanosonde@users.noreply.github.com> Date: Fri, 17 Jul 2020 14:50:37 +0200 Subject: [PATCH] save work --- examples/knx-linux/main.cpp | 7 ++++--- src/knx/config.h | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/examples/knx-linux/main.cpp b/examples/knx-linux/main.cpp index f835e0e..9c17954 100644 --- a/examples/knx-linux/main.cpp +++ b/examples/knx-linux/main.cpp @@ -33,12 +33,13 @@ bool isSendHidReportPossible() { return false; } -#if MEDIUM_TYPE == 5 + +#if MASK_VERSION == 0x57B0 KnxFacade knx; -#elif MEDIUM_TYPE == 2 +#elif MASK_VERSION == 0x27B0 KnxFacade knx; #else -#error Only MEDIUM_TYPE IP and RF supported +#error Mask version not supported yet! #endif long lastsend = 0; diff --git a/src/knx/config.h b/src/knx/config.h index 5c4771b..3abb23a 100644 --- a/src/knx/config.h +++ b/src/knx/config.h @@ -14,14 +14,14 @@ // Normal devices #define MASK_VERSION 0x07B0 -//#define MASK_VERSION 0x02B0 -//#define MASK_VERSION 0x05B0 +//#define MASK_VERSION 0x27B0 +//#define MASK_VERSION 0x57B0 // Couplers // 0x091A: IP/TP1 -// 0x29B0: TP1/RF +// 0x2920: TP1/RF //#define MASK_VERSION 0x091A -//#define MASK_VERSION 0x29B0 +//#define MASK_VERSION 0x2920 #define USE_RF #define USE_TP