diff options
author | Brendan Jackman <brendan.jackman@arm.com> | 2017-10-09 15:28:57 +0100 |
---|---|---|
committer | Brendan Jackman <brendan.jackman@arm.com> | 2017-10-09 18:25:03 +0100 |
commit | 7dd781135546cc081f84bc2acd6d3c44afd5c785 (patch) | |
tree | 8dfad02aebb83e8cfb6e5566fa2a02d0038143ec | |
parent | dbe568f51be54c4cb2db9540489c8a0de5c6a19b (diff) | |
download | devlib-7dd781135546cc081f84bc2acd6d3c44afd5c785.tar.gz |
acmecape: Add note on how to reboot ACME
The ACME firmware sometimes benefits from turning-it-off-and-on-again.
-rw-r--r-- | devlib/instrument/acmecape.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/devlib/instrument/acmecape.py b/devlib/instrument/acmecape.py index 0b10d08..818094f 100644 --- a/devlib/instrument/acmecape.py +++ b/devlib/instrument/acmecape.py @@ -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): |