[FL-3182] Fix typos in iButton (#2506)
* Fix a typo: right shift instead of greater than * Fix a typo: proper iButton part number Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user