fix: gpio pins and modes

This commit is contained in:
Tobias Reisinger 2020-04-18 13:28:23 +02:00
parent 82f43080ac
commit fd2f5acbb3
3 changed files with 10 additions and 9 deletions
runners

View file

@ -9,9 +9,9 @@ void
runner_test(controller_t *controller)
{
// from x down to 0 to turn all relays off in the end
for(int test_run = 2; test_run >= 0; --test_run)
for(uint_fast8_t i = 0; i < controller->relay_count; ++i)
{
for(uint_fast8_t i = 0; i < controller->relay_count; ++i)
for(int test_run = 2; test_run >= 0; --test_run)
{
int is_active = test_run % 2;
if(global_config.relay_configs[i].inverted)