1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-02-07 05:30:44 +00:00

acmecape: Add note on how to reboot ACME

The ACME firmware sometimes benefits from turning-it-off-and-on-again.
This commit is contained in:
Brendan Jackman 2017-10-09 15:28:57 +01:00
parent dbe568f51b
commit 7dd7811355

View File

@ -91,6 +91,9 @@ class AcmeCapeInstrument(Instrument):
raise HostError(msg.format(output))
if self.process.returncode != 15: # iio-capture exits with 15 when killed
output += self.process.stdout.read()
self.logger.info('ACME instrument encountered an error, '
'you may want to try rebooting the ACME device:\n'
' ssh root@{} reboot'.format(self.host))
raise HostError('iio-capture exited with an error ({}), output:\n{}'
.format(self.process.returncode, output))
if not os.path.isfile(self.raw_data_file):