Merge pull request #7238 from ascillato/patch-3

KNX: Fix compilation issue when using KNX on Tasmota-IR firmware type
This commit is contained in:
Theo Arends 2019-12-17 08:46:52 +01:00 committed by GitHub
commit 5aa89ad896
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -499,6 +499,7 @@ void KNX_INIT(void)
if (GetUsedInModule(GPIO_DHT22, my_module.io)) { device_param[KNX_HUMIDITY-1].show = true; } if (GetUsedInModule(GPIO_DHT22, my_module.io)) { device_param[KNX_HUMIDITY-1].show = true; }
if (GetUsedInModule(GPIO_SI7021, my_module.io)) { device_param[KNX_HUMIDITY-1].show = true; } if (GetUsedInModule(GPIO_SI7021, my_module.io)) { device_param[KNX_HUMIDITY-1].show = true; }
#if defined(USE_ENERGY_SENSOR)
// Any device with a Power Monitoring // Any device with a Power Monitoring
if ( energy_flg != ENERGY_NONE ) { if ( energy_flg != ENERGY_NONE ) {
device_param[KNX_ENERGY_POWER-1].show = true; device_param[KNX_ENERGY_POWER-1].show = true;
@ -509,6 +510,7 @@ void KNX_INIT(void)
device_param[KNX_ENERGY_CURRENT-1].show = true; device_param[KNX_ENERGY_CURRENT-1].show = true;
device_param[KNX_ENERGY_POWERFACTOR-1].show = true; device_param[KNX_ENERGY_POWERFACTOR-1].show = true;
} }
#endif
#ifdef USE_RULES #ifdef USE_RULES
device_param[KNX_SLOT1-1].show = true; device_param[KNX_SLOT1-1].show = true;