2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

52_I2C_SHT21: bugfix in crc

00_RPII2C/10_FRM: added SHT.* clients


git-svn-id: https://svn.fhem.de/fhem/trunk@11728 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
klauswitt 2016-07-01 22:20:30 +00:00
parent e59539d42a
commit b1f6ac45c6
4 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ I2C_MCP.*
I2C_BME280
I2C_BMP180
I2C_BH1750
I2C_SHT21
I2C_SHT.*
I2C_TSL2561
I2C_K30
);

View File

@ -17,7 +17,7 @@ I2C_MCP.*
I2C_BME280
I2C_BMP180
I2C_BH1750
I2C_SHT21
I2C_SHT.*
I2C_TSL2561
I2C_K30
);

View File

@ -50,7 +50,7 @@ my @clients = qw(
I2C_DS1307
I2C_PC.*
I2C_MCP23.*
I2C_SHT21
I2C_SHT.*
I2C_BME280
I2C_BMP180
I2C_BH1750

View File

@ -293,7 +293,7 @@ sub I2C_SHT21_CheckCrc(@) {
$crc = ($crc & 0x80 ? $poly : 0 ) ^ ($crc << 1);
}
}
return ($crc = $data[2] ? undef : $crc);
return ($crc == $data[2] ? undef : $crc);
}
sub I2C_SHT21_DbLog_splitFn($) {