Move output_grabber

This commit is contained in:
Philippe Teuwen 2024-08-07 10:29:40 +02:00
parent 11c1c8490c
commit e3fb13de39
6 changed files with 16 additions and 88 deletions

View file

@ -8,6 +8,6 @@ p=pm3.pm3("/dev/ttyACM0")
print("Device:", p.name)
with out:
p.console("hw status")
for line in out.capturedtext.split('\n'):
for line in out.captured_output.split('\n'):
if "Unique ID" in line:
print(line)