mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
better output for 'get <device> listUnconfirmed'
git-svn-id: https://svn.fhem.de/fhem/trunk@3637 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
eb95ed5a16
commit
f10b263e24
@ -647,9 +647,10 @@ SWAP_Get($@)
|
||||
my $ret;
|
||||
|
||||
foreach my $params (@{$hash->{sentList}}) {
|
||||
$ret .= $params->[0] ."\t". $params->[1] ."\t". $params->[2] ."\t". ($params->[3]?$params->[3]:"") ."\n";
|
||||
#$ret .= $params->[0] ."\t". $function_codes{$params->[1]} ."\t". $params->[2] ."\t". ($params->[3]?$params->[3]:"") ."\n";
|
||||
#$ret .= " ". $params->[0] ."\t". $params->[1] ."\t". $params->[2] ."\t". ($params->[3]?$params->[3]:"") ."\n";
|
||||
$ret .= " ". $params->[0] ."\t". $function_codes{$params->[1]} ."\t ". $params->[2] ."\t". ($params->[3]?$params->[3]:"") ."\n";
|
||||
}
|
||||
$ret = "addr.\t type\treg.\tdata\n". $ret if( $ret );
|
||||
|
||||
$ret = "no unconfirmed messages" if( !$ret );
|
||||
return $ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user