Skip to content

Commit 6b8422e

Browse files
add DS18S20, DS1820 support to single-drop
take an optional bool isDS18S20 in singleGetTempC() and singleGetTempF() to support DS18S20 and DS1820 on single-drop systems.
1 parent 12c50a1 commit 6b8422e

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎DallasTemperature.h‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ class DallasTemperature
129129

130130
// support for high-speed temperature reads on single-drop networks
131131
bool singleReadScratchPad(uint8_t*);
132-
bool singleConnected(uint8_t*);
133-
int16_t singleCalculateTemperature(uint8_t*);
134-
int16_t singleGetTemp(void);
135-
float singleGetTempC(void);
136-
float singleGetTempF(void);
132+
bool singleIsConnected(uint8_t*);
133+
int16_t singleCalculateTemperature(uint8_t*, bool);
134+
int16_t singleGetTemp(bool);
135+
float singleGetTempC(bool);
136+
float singleGetTempF(bool);
137137

138138
#if REQUIRESALARMS
139139

0 commit comments

Comments
 (0)