mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-28 17:12:32 +00:00
fixed: removed unnecessary linefeeds in events
git-svn-id: https://svn.fhem.de/fhem/trunk@4291 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a33b597377
commit
541f10594c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user