mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-02 19:44:03 -06: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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue