mirror of https://github.com/ArduPilot/ardupilot
Tools: Comparison to `None` should be `cond is None`
This commit is contained in:
parent
9d76d1e3df
commit
9f4dbb2727
|
@ -303,7 +303,7 @@ class MagcalController(CalController):
|
|||
# this is set to None so we can ensure we don't get
|
||||
# progress reports for completed compasses.
|
||||
self.last_progress[m.compass_id] = None
|
||||
if len(self.last_progress.values()) and all(progress == None for progress in self.last_progress.values()):
|
||||
if len(self.last_progress.values()) and all(progress is None for progress in self.last_progress.values()):
|
||||
self.stop()
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in New Issue