// Perform a 1-Wire reset cycle. Returns 1 if a device responds
// with a presence pulse. Returns 0 if there is no device or the
// bus is shorted or otherwise held low for more than 250uS
uint8_t reset(void);
Having two different meanings for 0 is not helpful and requires modifying the code to find out which of the two outcomes has occurred.
Having two different meanings for 0 is not helpful and requires modifying the code to find out which of the two outcomes has occurred.