Closed DavidAntliff closed 4 years ago
https://github.com/DavidAntliff/esp32-ds18b20/blob/359cf918e3f641159283b5ae96cd939df28ef6e6/ds18b20.c#L434
Unnecessary use of a magic number (9) - instead consider using _read_scratchpad() and refactoring to support CRC checking.
9
_read_scratchpad()
https://github.com/DavidAntliff/esp32-ds18b20/blob/359cf918e3f641159283b5ae96cd939df28ef6e6/ds18b20.c#L434
Unnecessary use of a magic number (
9
) - instead consider using_read_scratchpad()
and refactoring to support CRC checking.