From 7dd781135546cc081f84bc2acd6d3c44afd5c785 Mon Sep 17 00:00:00 2001 From: Brendan Jackman Date: Mon, 9 Oct 2017 15:28:57 +0100 Subject: acmecape: Add note on how to reboot ACME The ACME firmware sometimes benefits from turning-it-off-and-on-again. --- devlib/instrument/acmecape.py | 3 +++ 1 file changed, 3 insertions(+) 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): -- cgit v1.2.3