[BREAKING] remove tem key (#883)
* [BREAKING] remove tem key we rely now on tempc and tempf only
This commit is contained in:
1 parent
be5a93a91a
commit
a6fb17595e
8 files changed
+3
-33
No files matched your search
@@ -147,24 +147,6 @@ void MeasureDS1820Temp() {
|
||||
if (current_temp[i] == -127) {
|
||||
Log.error(F("DS1820: Device %s currently disconnected!" CR), (char*)ds1820_addr[i].c_str());
|
||||
} else if (DS1820_ALWAYS || current_temp[i] != persisted_temp[i]) {
|
||||
// remove for 0.9.6 release -- BEGIN (Additional BREAKING CHANGE - Unit will be removed)
|
||||
if (DS1820_FAHRENHEIT) {
|
||||
Log.notice(F("DS1820: Temperature %s %d F" CR),
|
||||
(char*)ds1820_addr[i].c_str(),
|
||||
DallasTemperature::toFahrenheit(current_temp[i]));
|
||||
DS1820data.set("temp", (float)DallasTemperature::toFahrenheit(current_temp[i]));
|
||||
DS1820data.set("unit", "F");
|
||||
} else {
|
||||
Log.notice(F("DS1820: Temperature %s %d C" CR),
|
||||
(char*)ds1820_addr[i].c_str(),
|
||||
current_temp[i]);
|
||||
DS1820data.set("temp", (float)DallasTemperature::toFahrenheit(current_temp[i]));
|
||||
DS1820data.set("unit", "F");
|
||||
DS1820data.set("temp", (float)current_temp[i]);
|
||||
DS1820data.set("unit", "C");
|
||||
}
|
||||
// remove for 0.9.6 release -- END
|
||||
|
||||
DS1820data.set("tempc", (float)DallasTemperature::toFahrenheit(current_temp[i]));
|
||||
DS1820data.set("tempf", (float)current_temp[i]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user