From 3219712c1715f5d84f23b5b7fc406812bc2bc6db Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 14 Jul 2025 14:39:15 -0400 Subject: [PATCH] i2c_software: Place wires in high impedance state after setup Don't leave the wires in a high output state during setup - leave them in a high-impedance with pullup state. Signed-off-by: Kevin O'Connor --- src/i2c_software.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/i2c_software.c b/src/i2c_software.c index d2072a56..ffbf754f 100644 --- a/src/i2c_software.c +++ b/src/i2c_software.c @@ -28,10 +28,10 @@ command_i2c_set_sw_bus(uint32_t *args) struct i2c_software *is = alloc_chunk(sizeof(*is)); is->ticks = args[3]; is->addr = (args[4] & 0x7f) << 1; // address format shifted - is->scl_in = gpio_in_setup(args[1], 1); is->scl_out = gpio_out_setup(args[1], 1); - is->sda_in = gpio_in_setup(args[2], 1); + is->scl_in = gpio_in_setup(args[1], 1); is->sda_out = gpio_out_setup(args[2], 1); + is->sda_in = gpio_in_setup(args[2], 1); i2cdev_set_software_bus(i2c, is); } DECL_COMMAND(command_i2c_set_sw_bus,