diff --git a/abzug.c b/abzug.c index ad83a48..efa4c0a 100644 --- a/abzug.c +++ b/abzug.c @@ -40,8 +40,8 @@ void do_abzug(){ } if (read_Input(BTN_ABZUG_PLUS, RISING)) { - if(abzug_speed <= 900) - abzug_speed += 100; + if(abzug_speed <= 990) + abzug_speed += 10; else abzug_speed = 1000; #if PLC_MQTT_ENABLED @@ -50,8 +50,8 @@ void do_abzug(){ } if (read_Input(BTN_ABZUG_MINUS, RISING)) { - if(abzug_speed >= 110) - abzug_speed -= 100; + if(abzug_speed >= 20) + abzug_speed -= 10; else abzug_speed = 10; #if PLC_MQTT_ENABLED @@ -60,8 +60,8 @@ void do_abzug(){ } if (read_Input(BTN_ABZUG_PLUS_FEIN, RISING)) { - if(abzug_speed <= 990) - abzug_speed += 10; + if(abzug_speed <= 999) + abzug_speed += 1; else abzug_speed = 1000; #if PLC_MQTT_ENABLED @@ -70,8 +70,8 @@ void do_abzug(){ } if (read_Input(BTN_ABZUG_MINUS_FEIN, RISING)) { - if(abzug_speed >= 20) - abzug_speed -= 10; + if(abzug_speed >= 11) + abzug_speed -= 1; else abzug_speed = 10; #if PLC_MQTT_ENABLED