From d048806bf69d3a7953e62c289517b36107af437e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= Date: Sat, 14 Jun 2025 21:00:23 +0200 Subject: [PATCH] drivers: w1: shell: fix write_bit function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit write_bit should write a bit, not a byte. Signed-off-by: Benjamin Cabé --- drivers/w1/w1_shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/w1/w1_shell.c b/drivers/w1/w1_shell.c index da97a794b57..aa0b06f2823 100644 --- a/drivers/w1/w1_shell.c +++ b/drivers/w1/w1_shell.c @@ -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); }