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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user