Skip to content

Commit e47e596

Browse files
committed
Make DallasTemperature::millisToWaitForConversion() publicly available
1 parent 0300df6 commit e47e596

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

libraries/DallasTemperature/DallasTemperature.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,10 @@ class DallasTemperature
116116

117117
// sends command for all devices on the bus to perform a temperature conversion
118118
void requestTemperatures(void);
119-
119+
120+
// returns time to wait for a temperature conversion based on given resolution
121+
int16_t millisToWaitForConversion(uint8_t);
122+
120123
// sends command for one device to perform a temperature conversion by address
121124
bool requestTemperaturesByAddress(const uint8_t*);
122125

@@ -233,8 +236,6 @@ class DallasTemperature
233236
// reads scratchpad and returns the raw temperature
234237
int16_t calculateTemperature(const uint8_t*, uint8_t*);
235238

236-
int16_t millisToWaitForConversion(uint8_t);
237-
238239
void blockTillConversionComplete(uint8_t, const uint8_t*);
239240

240241
#if REQUIRESALARMS

0 commit comments

Comments
 (0)