fixed: removed unnecessary linefeeds in events

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@4291 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen
2013-11-26 21:00:57 +00:00
parent 55a8c2c1d9
commit 9c723b02fb

View File

@@ -133,6 +133,8 @@ sub PIFACE_Get($@){
$val = `$cmd`;
$cmd = '/usr/local/bin/gpio -p read '.$adr;
$val = `$cmd`;
$val =~ s/\n//g;
$val =~ s/\r//g;
readingsSingleUpdate($hash, 'in'.$port, $val, 1);
} else {
# read all inports and outports