From df79893dbc5c63df325769c7bd48e1c0ed4a08dc Mon Sep 17 00:00:00 2001 From: Blinker73 <100171067+Blinker73@users.noreply.github.com> Date: Mon, 14 Mar 2022 14:24:27 -0400 Subject: [PATCH] linux: Update i2c.c (#5295) Similarly to commit 8cf1b512 for SPI, the Rpi4 has more i2c busses to offer This change allows klipper to use up to I2c bus 6 /boot/configtxt dtparam=i2c_arm=on dtoverlay=i2c6 and pi@fluiddpi:~ $ ls -1 /dev/i2c* /dev/i2c-1 /dev/i2c-6 Signed-off-by: Sylvain Dansereau --- src/linux/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linux/i2c.c b/src/linux/i2c.c index ac3feb32..ce91656f 100644 --- a/src/linux/i2c.c +++ b/src/linux/i2c.c @@ -13,7 +13,7 @@ #include "internal.h" // report_errno #include "sched.h" // sched_shutdown -DECL_ENUMERATION_RANGE("i2c_bus", "i2c.0", 0, 2); +DECL_ENUMERATION_RANGE("i2c_bus", "i2c.0", 0, 7); struct i2c_s { uint32_t bus;