autotest: tweak test_mount_pitch win condition

we only need to see the sample once when hold is 0
This commit is contained in:
Peter Barker 2023-09-26 06:16:32 +10:00 committed by Peter Barker
parent 429dbefade
commit 8cac60ca88
1 changed files with 1 additions and 2 deletions

View File

@ -4908,8 +4908,7 @@ class AutoTestCopter(AutoTest):
(mount_pitch, despitch))
if success_start == 0:
success_start = now
continue
if now - success_start > hold:
if now - success_start >= hold:
self.progress("Mount pitch achieved")
return