diff --git a/CMakeLists.txt b/CMakeLists.txt index b700667..48f8dd6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.7) project(controller - VERSION 0.2.2 + VERSION 0.2.3 LANGUAGES C) add_executable(controller src/main.c) diff --git a/src/main.c b/src/main.c index 1c64695..4736efe 100644 --- a/src/main.c +++ b/src/main.c @@ -125,6 +125,7 @@ main(int argc, const char** argv) if(global_config.relay_configs[i].driver == RELAY_DRIVER_GPIO) { pinMode(global_config.relay_configs[i].pin, OUTPUT); + digitalWrite(global_config.relay_configs[i].pin, global_config.relay_configs[i].inverted); } }