devStateIcon bugfix: noIcon should display the state

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@3256 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2013-06-07 08:22:35 +00:00
parent 8794c823fb
commit 6cc09802d7

View File

@@ -2200,7 +2200,11 @@ FW_dev2image($)
$rlink = $link;
last;
}
return ($iconName, $link, (defined(FW_iconName($iconName)) ? 0 : 1));
if(defined(FW_iconName($iconName))) {
return ($iconName, $link, 0);
} else {
return ($state, $link, 1);
}
}
}
}