mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
zwavealliance.images.parse: readd 0x=>00 conversion (Forum #115717)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@23130 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7ee578d21d
commit
3a2ea5f6e7
@ -59,6 +59,11 @@ for my $fn (sort { $a <=> $b } @files) {
|
|||||||
unlink("$ARGV[0]/$fn");
|
unlink("$ARGV[0]/$fn");
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
# There is sometimes 0x0x in the XML, see
|
||||||
|
# https://products.z-wavealliance.org/products/1694
|
||||||
|
$mi =~s/0x/00/;
|
||||||
|
$pti=~s/0x/00/;
|
||||||
|
$pi =~s/0x/00/;
|
||||||
printf OF "%s-%s-%s,%s,%s,%s\n", $mi,$pti,$pi,$fn,$pic,$bn;
|
printf OF "%s-%s-%s,%s,%s,%s\n", $mi,$pti,$pi,$fn,$pic,$bn;
|
||||||
}
|
}
|
||||||
closedir(DIRH);
|
closedir(DIRH);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user