2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-18 05:56:03 +00:00

MYSENSORS_DEVICE: let autocreate readings-indices start at 2 (skipping the 1 which is left blank

git-svn-id: https://svn.fhem.de/fhem/trunk@6809 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
ntruchsess 2014-10-25 12:17:42 +00:00
parent 2b77e01eec
commit 9928b0fa0a

View File

@ -366,7 +366,7 @@ sub onPresentationMessage($$) {
my $readingMappings = $hash->{readingMappings};
my $typeMappings = $hash->{typeMappings};
if (my $sensorMappings = $hash->{sensorMappings}->{$nodeType}) {
my $idStr = ($id > 1 ? $id-1 : "");
my $idStr = ($id > 1 ? $id : "");
my @ret = ();
foreach my $type (@{$sensorMappings->{sends}}) {
next if (defined $readingMappings->{$id}->{$type});