Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 May 2021 18:58:01 GMT
From:      Poul-Henning Kamp <phk@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: e32b2bcff02e - main - i2c(8): Change default mode to "transfer", which should work everywhere¹
Message-ID:  <202105191858.14JIw1mE001019@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by phk:

URL: https://cgit.FreeBSD.org/src/commit/?id=e32b2bcff02ee6885c2e2e8db040f91e5a06214d

commit e32b2bcff02ee6885c2e2e8db040f91e5a06214d
Author:     Poul-Henning Kamp <phk@FreeBSD.org>
AuthorDate: 2021-05-19 18:48:28 +0000
Commit:     Poul-Henning Kamp <phk@FreeBSD.org>
CommitDate: 2021-05-19 18:48:28 +0000

    i2c(8): Change default mode to "transfer", which should work everywhere¹
    
    ¹ According to @ian
---
 usr.sbin/i2c/i2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/i2c/i2c.c b/usr.sbin/i2c/i2c.c
index 099418a5715c..a471b6533170 100644
--- a/usr.sbin/i2c/i2c.c
+++ b/usr.sbin/i2c/i2c.c
@@ -550,7 +550,7 @@ main(int argc, char** argv)
 	i2c_opt.count = 1;
 	i2c_opt.binary = 0;	/* ASCII text output */
 	i2c_opt.skip = NULL;	/* scan all addresses */
-	i2c_opt.mode = I2C_MODE_NOTSET;
+	i2c_opt.mode = I2C_MODE_TRANSFER;
 
 	/* Find out what we are going to do */
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105191858.14JIw1mE001019>