removed '*' copy error.

This commit is contained in:
Simon IJskes 2019-02-11 12:33:06 +01:00
parent 57fe95c1be
commit 8b9624479e

View File

@ -41,7 +41,7 @@ float DHT::readTemperature(bool S, bool force) {
case DHT11: case DHT11:
f = data[2]; f = data[2];
if (data[3] & 0x80) { if (data[3] & 0x80) {
f *= -1 -f ; f = -1 - f ;
} }
f += (data[3] & 0x0f) * 0.1; f += (data[3] & 0x0f) * 0.1;
if(S) { if(S) {