drivers: w1: shell: fix write_bit function

write_bit should write a bit, not a byte.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2025-06-14 21:00:23 +02:00 committed by Benjamin Cabé
commit d048806bf6

View file

@ -176,7 +176,7 @@ static int cmd_w1_write_bit(const struct shell *sh, size_t argc, char **argv)
}
(void)w1_lock_bus(dev);
ret = w1_write_byte(dev, (bool)input);
ret = w1_write_bit(dev, (bool)input);
if (ret < 0) {
shell_error(sh, "Failed to write bit [%d]", ret);
}