Fix a typo: right shift instead of greater than

This commit is contained in:
Georgii Surkov 2023-03-17 21:16:06 +03:00 committed by MX
parent 3444c5245e
commit eb355d4a16
No known key found for this signature in database
GPG Key ID: 7CCC66B7DBDD1C83

View File

@ -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, DALLAS_COMMON_CMD_READ_MEM);
onewire_host_write(host, (uint8_t)address); 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); onewire_host_read_bytes(host, data, (uint16_t)data_size);