fix invalid syntax
This commit is contained in:
parent
012d731f03
commit
136b67cbf4
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue