From a169c46f62dac57a907c58a852d48fdce235d62a Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 6 Sep 2021 18:19:29 -0700 Subject: [PATCH] i2cdump: fix behavior on read failure. The other implementations just show Xs for the missing data and carry on. --- toys/other/i2ctools.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/toys/other/i2ctools.c b/toys/other/i2ctools.c index bac891a5..18341591 100644 --- a/toys/other/i2ctools.c +++ b/toys/other/i2ctools.c @@ -247,8 +247,11 @@ void i2cdump_main(void) for (row = 0; row<=0xf0; row += 16) { xprintf("%02x:", row & 0xf0); for (addr = row; addr