File tree 1 file changed +6
-3
lines changed
tasmota/tasmota_xdrv_driver
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -620,7 +620,7 @@ void KNX_INIT(void)
620
620
}
621
621
#endif // USE_ENERGY_SENSOR
622
622
623
- #ifdef USE_RULES
623
+ #if defined( USE_RULES) || defined(USE_SCRIPT)
624
624
device_param[KNX_SLOT1-1 ].show = true ;
625
625
device_param[KNX_SLOT2-1 ].show = true ;
626
626
device_param[KNX_SLOT3-1 ].show = true ;
@@ -718,7 +718,8 @@ void KNX_CB_Action(message_t const &msg, void *arg)
718
718
}
719
719
}
720
720
}
721
- #ifdef USE_RULES
721
+
722
+ #if defined(USE_RULES) || defined(USE_SCRIPT)
722
723
else if ((chan->type >= KNX_SLOT1) && (chan->type <= KNX_SLOT9)) // KNX RX SLOTs (write command)
723
724
{
724
725
if (!toggle_inhibit) {
@@ -826,7 +827,9 @@ void KNX_CB_Action(message_t const &msg, void *arg)
826
827
KNX_ANSWER_4BYTE_INT (msg.received_on , round (1000.0 * Energy->total_sum ));
827
828
}
828
829
#endif // USE_ENERGY_SENSOR
829
- #ifdef USE_RULES
830
+
831
+ #if defined(USE_RULES) || defined(USE_SCRIPT)
832
+
830
833
else if ((chan->type >= KNX_SLOT1) && (chan->type <= KNX_SLOT9)) // KNX RX SLOTs (read command)
831
834
{
832
835
if (!toggle_inhibit) {
You can’t perform that action at this time.
0 commit comments