autotest: correct rc-values-good debug

This commit is contained in:
Peter Barker 2021-04-03 01:06:05 +11:00 committed by Peter Barker
parent 7d9daccdf7
commit dfa342a79f

View File

@ -3474,12 +3474,12 @@ class AutoTest(ABC):
continue
bad_channels = ""
for chan in map_copy:
self.progress("RC values good")
chan_pwm = getattr(m, "chan" + str(chan) + "_raw")
if chan_pwm != map_copy[chan]:
bad_channels += " (ch=%u want=%u got=%u)" % (chan, map_copy[chan], chan_pwm)
break
if len(bad_channels) == 0:
self.progress("RC values good")
break
self.progress("RC values bad:%s" % bad_channels)
if not self.rc_thread.is_alive():