fix invalid syntax

This commit is contained in:
Nicolò Balzarotti 2023-02-25 11:07:12 +01:00
parent 012d731f03
commit 136b67cbf4
1 changed files with 3 additions and 3 deletions

View File

@ -9,9 +9,9 @@ class FixedDutyCycle(controllers.Controller):
self.set_duty(kwargs.pop('duty_perc')) self.set_duty(kwargs.pop('duty_perc'))
operator = kwargs.pop('operator', '<') operator = kwargs.pop('operator', '<')
functions = { functions = {
'<': lambda (a, b): a < b, '<': lambda a, b: a < b,
'>': lambda (a, b): a > b, '>': lambda a, b: a > b,
'==': lambda (a, b): a == b, '==': lambda a, b: a == b,
} }
self.operator = functions[operator] self.operator = functions[operator]
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)