Skip to content

Commit 2a25788

Browse files
committed
0.0.12 fixed poor merge
1 parent afe992d commit 2a25788

File tree

3 files changed

+2
-17
lines changed

3 files changed

+2
-17
lines changed

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Frugal-IoT",
3-
"version": "0.0.11",
3+
"version": "0.0.12",
44
"description": "A platform for affordable easily built sensors",
55
"keywords": "frugal, arduino, esp32, iot, sensors",
66
"authors": [

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Frugal-IoT
2-
version=0.0.11
2+
version=0.0.12
33
author=Mitra Ardron
44
maintainer=Mitra Ardron <mitra@mitra.biz>
55
sentence=Platform for affordable sensors

src/sensor_ds18b20.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,6 @@ bool Sensor_DS18B20::validate(float v) {
4747
return !std::isnan(v) && (v < 80);
4848
}
4949

50-
/**
51-
* @brief Validates the temperature reading
52-
*
53-
* The DS18B20 sensor returns 85°C as its power-on reset value, which indicates
54-
* an error or uninitialized state. This override rejects:
55-
* - NaN values (disconnected sensor)
56-
* - Values >= 80°C (likely power-on reset or error values)
57-
*
58-
* @param v The temperature value to validate
59-
* @return bool True if the value is valid, false otherwise
60-
*/
61-
bool Sensor_DS18B20::validate(float v) {
62-
return !std::isnan(v) && (v < 80);
63-
}
64-
6550
/**
6651
* @brief Reads temperature from the specified DS18B20 sensor with full precision with full precision
6752
*

0 commit comments

Comments
 (0)