milesburton / Arduino-Temperature-Control-Library

Arduino Temperature Library
https://www.milesburton.com/w/index.php/Dallas_Temperature_Control_Library
973 stars 487 forks source link

Bug: `DallasTemperature::readPowerSupply(const uint8_t* deviceAddress)` sends reset at end of command #233

Open bonnyr opened 1 year ago

bonnyr commented 1 year ago

Observed when running sensor.begin(). The library checks the power supply mode by reading the power supply. It then issues a reset sequence.

According to the docs, the master sends a reset when starting a transaction, not when finishing one. Below is a pulseview image showing the behaviour :

image

The diagram shows a match rom command (0x55) followed by Read Power command (0xb4) immediately followed by a reset pulse.

Then another reset is being issued when starting a new command as can be seen below:

image