Skip to content

Commit

Permalink
Merge pull request #44 from krkeegan/empty_aldb
Browse files Browse the repository at this point in the history
Get_first_emtpy_address - ALDB entries that lack an address should be ignored
  • Loading branch information
hollie committed Jan 31, 2013
2 parents f254e79 + 3df7732 commit 21b8d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Insteon/AllLinkDatabase.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,7 @@ sub get_first_empty_address
}
else
{
$low_address = $new_address if $new_address < $low_address;
$low_address = $new_address if (($new_address < $low_address) && ($new_address != 0));
}
}
$first_address = ($low_address > 0) ? sprintf('%04X', $low_address - 8) : 0;
Expand Down

0 comments on commit 21b8d18

Please sign in to comment.