diff --git a/main.c b/main.c index d3bd9e5..03c3775 100644 --- a/main.c +++ b/main.c @@ -57,9 +57,10 @@ void IO_LIBRARY_Init(void) { #define STEP_SIZE 5 #define TOP_VALUE 40 void do_luefter(){ - static uint8_t fan_value = TOP_VALUE*0.8; + static uint8_t fan_value = TOP_VALUE*0.5; static uint8_t fan_state = 0; + if(!read_Input(IN_ANLAGE_EIN, LEVEL)){ fan_state = 0; ioHelperSetBit(outStates, LED_LUEFTER, 0);