mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-03-08 03:59:39 +00:00
Changed to BearSSL for meter decryption on ESP8266 + some minor changes
This commit is contained in:
@@ -106,6 +106,7 @@ bool HwTools::updateTemperatures() {
|
||||
found = true;
|
||||
data->lastRead = t;
|
||||
if(t > -85) {
|
||||
data->changed = data->lastValidRead != t;
|
||||
data->lastValidRead = t;
|
||||
}
|
||||
}
|
||||
@@ -115,6 +116,7 @@ bool HwTools::updateTemperatures() {
|
||||
memcpy(data->address, addr, 8);
|
||||
data->lastRead = t;
|
||||
if(t > -85) {
|
||||
data->changed = data->lastValidRead != t;
|
||||
data->lastValidRead = t;
|
||||
}
|
||||
|
||||
@@ -130,6 +132,7 @@ bool HwTools::updateTemperatures() {
|
||||
float t = sensorApi->getTempC(data->address);
|
||||
data->lastRead = t;
|
||||
if(t > -85) {
|
||||
data->changed = data->lastValidRead != t;
|
||||
data->lastValidRead = t;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user