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:
parent
2af6adc745
commit
d048806bf6
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue