55_GDS.pm: minor bugfix in rgb converter
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@6798 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -956,7 +956,7 @@ sub sepLine($) {
|
||||
sub _rgbd2h($) {
|
||||
my ($input) = @_;
|
||||
my @a = split(" ", $input);
|
||||
my $output = sprintf( "%x%x%x", $a[0],$a[1],$a[2]);
|
||||
my $output = sprintf( "%02x%02x%02x", $a[0],$a[1],$a[2]);
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user