51_I2C_BMP180.pm: bugfix for oversampling

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@9288 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
klauswitt
2015-09-22 20:37:43 +00:00
parent f82f6c96e9
commit 7efe8acf33

View File

@@ -139,7 +139,7 @@ sub I2C_BMP180_Init($$) {
return $msg;
}
}
if (AttrVal($name, '', '?') eq '?') {
if (AttrVal($name, 'oversampling_settings', '?') eq '?') {
$msg = CommandAttr(undef, $name . ' oversampling_settings 3');
if ($msg) {
Log3 ($hash, 1, $msg);