add: invert gpios
This commit is contained in:
parent
27df642ee6
commit
82f43080ac
5 changed files with 27 additions and 2 deletions
handlers
|
@ -25,6 +25,10 @@ handler_loop(controller_t *controller)
|
|||
LOG_DEBUG("relay %d is active", i);
|
||||
is_active = 1;
|
||||
}
|
||||
if(global_config.relay_configs[i].inverted)
|
||||
{
|
||||
is_active = !is_active;
|
||||
}
|
||||
switch(global_config.relay_configs[i].driver)
|
||||
{
|
||||
case RELAY_DRIVER_GPIO:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue