Skip to content

Commit d048806

Browse files
committed
drivers: w1: shell: fix write_bit function
write_bit should write a bit, not a byte. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent 2af6adc commit d048806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/w1/w1_shell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ static int cmd_w1_write_bit(const struct shell *sh, size_t argc, char **argv)
176176
}
177177

178178
(void)w1_lock_bus(dev);
179-
ret = w1_write_byte(dev, (bool)input);
179+
ret = w1_write_bit(dev, (bool)input);
180180
if (ret < 0) {
181181
shell_error(sh, "Failed to write bit [%d]", ret);
182182
}

0 commit comments

Comments
 (0)