From c64713487eedf7464d537ad4621a2999ff5c1534 Mon Sep 17 00:00:00 2001 From: Mikhail <30877238+MikhailZhyhariev@users.noreply.github.com> Date: Fri, 30 Mar 2018 10:26:41 +0300 Subject: [PATCH] Update wiringPiI2C.c Without fix the function doesn't work when you connect device in 'i2c-2'. --- wiringPi/wiringPiI2C.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wiringPi/wiringPiI2C.c b/wiringPi/wiringPiI2C.c index 2ad94a3..fb6962c 100644 --- a/wiringPi/wiringPiI2C.c +++ b/wiringPi/wiringPiI2C.c @@ -228,7 +228,7 @@ int wiringPiI2CSetup (const int devId) else if (rev == 2) device = "/dev/i2c-1" ; else if (rev == 3) - device = "/dev/i2c-0"; // guenter fuer orange pi device = "/dev/i2c-2"; + device = "/dev/i2c-2"; // guenter fuer orange pi device = "/dev/i2c-2"; else device = "/dev/i2c-3" ;