Add separate factory script and device log files
If no log-file is provided write logs to BUILD_WORKSPACE_DIRECTORY as:
Device logs: ./factory-logs-20240801175511-device.txt
Factory logs: ./factory-logs-20240801175511-operator.txt
Change all print() statements to print_message() which prints then
logs to the new factory log file with colors removed.
Add a re-flash message when failing to connect to a device.
Add the last 5 sensor readings to the title of each _sample_until()
progress bar.
Change-Id: I465f20ec183c0fbea5c03f70a98096b5819d346e
Reviewed-on: https://pigweed-internal-review.git.corp.google.com/c/pigweed/showcase/rp2/+/73669
Reviewed-by: Keir Mierle <keir@google.com>
Commit-Queue: Anthony DiGirolamo <tonymd@google.com>
1 file changed