From ffd8ac60f79865a4c7191be80aa3152dc052394e Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Fri, 24 Feb 2023 11:00:29 -0500 Subject: [PATCH] flash_can: reduce error output Don't log read exceptions for each iteration, only log when the exception differs. Log timeout exceptions separately. Signed-off-by: Eric Callahan --- scripts/flash_can.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/flash_can.py b/scripts/flash_can.py index 5cd23fe..6f164bd 100755 --- a/scripts/flash_can.py +++ b/scripts/flash_can.py @@ -127,6 +127,7 @@ class CanFlasher: crc = crc16_ccitt(out_cmd[2:]) out_cmd.extend(struct.pack("