From eb355d4a16ed83fa78fcebf31b545e76054163ce Mon Sep 17 00:00:00 2001 From: Georgii Surkov Date: Fri, 17 Mar 2023 21:16:06 +0300 Subject: [PATCH] Fix a typo: right shift instead of greater than --- lib/one_wire/ibutton/protocols/dallas/dallas_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/one_wire/ibutton/protocols/dallas/dallas_common.c b/lib/one_wire/ibutton/protocols/dallas/dallas_common.c index 22b25db84..ebf57e555 100644 --- a/lib/one_wire/ibutton/protocols/dallas/dallas_common.c +++ b/lib/one_wire/ibutton/protocols/dallas/dallas_common.c @@ -85,7 +85,7 @@ bool dallas_common_read_mem(OneWireHost* host, uint16_t address, uint8_t* data, onewire_host_write(host, DALLAS_COMMON_CMD_READ_MEM); onewire_host_write(host, (uint8_t)address); - onewire_host_write(host, (uint8_t)(address > BITS_IN_BYTE)); + onewire_host_write(host, (uint8_t)(address >> BITS_IN_BYTE)); onewire_host_read_bytes(host, data, (uint16_t)data_size);