From 6aa555d68f95ef6a5e575f18bc4f004babf9b29b Mon Sep 17 00:00:00 2001 From: Adrian <35405447+ascillato@users.noreply.github.com> Date: Tue, 3 Apr 2018 00:45:05 -0300 Subject: [PATCH] Update settings.h --- sonoff/settings.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/sonoff/settings.h b/sonoff/settings.h index 51a90af54..46823faed 100644 --- a/sonoff/settings.h +++ b/sonoff/settings.h @@ -48,7 +48,7 @@ typedef union { // Restricted by MISRA-C Rule 18.4 bu uint32_t not_power_linked : 1; // bit 20 (v5.11.1f) uint32_t no_power_on_check : 1; // bit 21 (v5.11.1i) uint32_t mqtt_serial : 1; // bit 22 (v5.12.0f) - uint32_t spare23 : 1; + uint32_t knx_enabled : 1; // bit 23 KNX uint32_t spare24 : 1; uint32_t spare25 : 1; uint32_t spare26 : 1; @@ -254,7 +254,15 @@ struct SYSCFG { Timer timer[MAX_TIMERS]; // 670 - // 6B0 - FFF free locations + uint16_t knx_physsical_addr; // 6B0 (address_t is a uint16_t) + byte knx_GA_registered; // 6B3 Number of Group Address to read + byte knx_CB_registered; // 6B4 Number of Group Address to write + uint16_t knx_GA_addr[KNX_max_GA]; // 6B5 (address_t is a uint16_t) x KNX_max_GA + uint16_t knx_CB_addr[KNX_max_CB]; // 6C9 (address_t is a uint16_t) x KNX_max_CB + byte knx_GA_param[KNX_max_GA]; // 6DD Type of Input (relay changed, button pressed, sensor read <-teleperiod) + byte knx_CB_param[KNX_max_GA]; // 6E7 Type of Output (set relay, toggle relay, reply sensor value) + + // 6F1 - FFF free locations } Settings; struct RTCMEM {