mirror of
https://github.com/andreili/klipper.git
synced 2025-08-23 19:34:06 +02:00
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 <kevin@koconnor.net>
This commit is contained in:
parent
b761b8c654
commit
3219712c17
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user