File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
libraries/MySensors/examples/SensebenderMicro Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -201,13 +201,13 @@ void sendTempHumidityMeasurements(bool force)
201
201
202
202
raHum.addValue (data.humidityPercent );
203
203
204
- float diffTemp = abs (lastTemperature - data.celsiusHundredths /100 );
204
+ float diffTemp = abs (lastTemperature - (isMetric ? data.celsiusHundredths : data. fahrenheitHundredths ) /100 );
205
205
float diffHum = abs (oldAvgHum - raHum.getAverage ());
206
206
207
207
Serial.print (F (" TempDiff :" ));Serial.println (diffTemp);
208
208
Serial.print (F (" HumDiff :" ));Serial.println (diffHum);
209
209
210
- if (isnan (diffTemp )) tx = true ;
210
+ if (isnan (diffHum )) tx = true ;
211
211
if (diffTemp > TEMP_TRANSMIT_THRESHOLD) tx = true ;
212
212
if (diffHum >= HUMI_TRANSMIT_THRESHOLD) tx = true ;
213
213
You can’t perform that action at this time.
0 commit comments