52_I2C_BME280: Bugfix

git-svn-id: https://svn.fhem.de/fhem/trunk@11884 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
klauswitt 2016-08-03 13:58:08 +00:00
parent 0eb3983f9e
commit 2b4a1491cd

View File

@ -172,7 +172,7 @@ sub I2C_BME280_Set($@) { # Messwerte manuell anfordern
} else { #..but get calibration variables first } else { #..but get calibration variables first
Log3 $hash, 5, "$name: in set but no calibrationData, requesting again"; Log3 $hash, 5, "$name: in set but no calibrationData, requesting again";
I2C_BME280_i2cread($hash, 0x88, 26); I2C_BME280_i2cread($hash, 0x88, 26);
I2C_BME280_i2cread($hash, 0xE1, 16); I2C_BME280_i2cread($hash, 0xE1, 8);
} }
} }
return undef return undef
@ -194,7 +194,7 @@ sub I2C_BME280_Get($@) { # Messwerte manuell anfordern
} else { #..but get calibration variables first } else { #..but get calibration variables first
Log3 $hash, 5, "$name: in set but no calibrationData, requesting again"; Log3 $hash, 5, "$name: in set but no calibrationData, requesting again";
I2C_BME280_i2cread($hash, 0x88, 26); I2C_BME280_i2cread($hash, 0x88, 26);
I2C_BME280_i2cread($hash, 0xE1, 16); I2C_BME280_i2cread($hash, 0xE1, 8);
} }
} else { } else {
return 'Unknown argument ' . $cmd . ', choose one of readValues:noArg'; return 'Unknown argument ' . $cmd . ', choose one of readValues:noArg';