Skip to content

Commit

Permalink
Merge pull request #4498 from ascillato/patch-1
Browse files Browse the repository at this point in the history
KNX: Add Support for ButtonN and SwitchN
  • Loading branch information
arendst authored Dec 1, 2018
2 parents 2367834 + 98a2e6e commit 2e1af64
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sonoff/xdrv_11_knx.ino
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,14 @@ void KNX_INIT(void)
{
if (GetUsedInModule(i, my_module.gp.io)) { device_param[i - GPIO_KEY1 + 8].show = true; }
}
for (int i = GPIO_SWT1_NP; i < GPIO_SWT4_NP + 1; ++i)
{
if (GetUsedInModule(i, my_module.gp.io)) { device_param[i - GPIO_SWT1_NP + 8].show = true; }
}
for (int i = GPIO_KEY1_NP; i < GPIO_KEY4_NP + 1; ++i)
{
if (GetUsedInModule(i, my_module.gp.io)) { device_param[i - GPIO_KEY1_NP + 8].show = true; }
}
if (GetUsedInModule(GPIO_DHT11, my_module.gp.io)) { device_param[KNX_TEMPERATURE-1].show = true; }
if (GetUsedInModule(GPIO_DHT22, my_module.gp.io)) { device_param[KNX_TEMPERATURE-1].show = true; }
if (GetUsedInModule(GPIO_SI7021, my_module.gp.io)) { device_param[KNX_TEMPERATURE-1].show = true; }
Expand Down

0 comments on commit 2e1af64

Please sign in to comment.