diff --git a/decocare/commands.py b/decocare/commands.py index 3447c46..61b8c1c 100644 --- a/decocare/commands.py +++ b/decocare/commands.py @@ -293,7 +293,7 @@ def format_percent_params (klass, rate, duration): @classmethod def format_params (klass, rate, duration): duration = duration / 30 - rate = int(rate / 0.025) + rate = int(round(rate / 0.025)) params = [0x00, rate, duration] return params