aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBlinker73 <100171067+Blinker73@users.noreply.github.com>2022-03-14 14:24:27 -0400
committerGitHub <noreply@github.com>2022-03-14 14:24:27 -0400
commitdf79893dbc5c63df325769c7bd48e1c0ed4a08dc (patch)
tree3468731404e26761cb65b48400fee23d13911585
parent082d773e2e13fd15ce063f6dd844e29aa88788fa (diff)
downloadkutter-df79893dbc5c63df325769c7bd48e1c0ed4a08dc.tar.gz
kutter-df79893dbc5c63df325769c7bd48e1c0ed4a08dc.tar.xz
kutter-df79893dbc5c63df325769c7bd48e1c0ed4a08dc.zip
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 <brutus_dansereau@hotmail.com>
-rw-r--r--src/linux/i2c.c2
1 files changed, 1 insertions, 1 deletions
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;