Skip to content

Commit c68b01e

Browse files
authored
OneWire: Fixed missing function call for temperature conversion (#146)
1 parent c5d7466 commit c68b01e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/PayloadOneWire.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
// 20250318 Renamed PAYLOAD_SIZE to MAX_UPLINK_SIZE
3838
// 20250625 Added missing call to owTempSensors.begin()
3939
// for DallasTemperature v4.0.3
40+
// 20250720 Fixed missing function call for temperature conversion
4041
//
4142
// ToDo:
4243
// -
@@ -95,7 +96,7 @@ void PayloadOneWire::encodeOneWire(uint8_t *appPayloadCfg, LoraEncoder &encoder)
9596
if ((appPayloadCfg[APP_PAYLOAD_OFFS_ONEWIRE + i] >> ch) & 0x1)
9697
{
9798
// Get temperature by index
98-
float tempC = owTempSensors.getTempCByIndex(index);
99+
float tempC = getOneWireTemperature(index);
99100

100101
// Check if reading was successful
101102
if (tempC != DEVICE_DISCONNECTED_C)

0 commit comments

Comments
 (0)