Skip to content

Commit

Permalink
Fixed: Error in determination of last channel index in most device fa…
Browse files Browse the repository at this point in the history
…milies on packet reception.
  • Loading branch information
hfedcba committed Jul 4, 2016
1 parent dc5d6f7 commit c7a4664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InsteonPeer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ void InsteonPeer::getValuesFromPacket(std::shared_ptr<InsteonPacket> packet, std
if(frame->channel == -2)
{
startChannel = 0;
endChannel = (_rpcDevice->functions.end()--)->first;
endChannel = _rpcDevice->functions.rbegin()->first;
}
else endChannel = startChannel;
for(int32_t l = startChannel; l <= endChannel; l++)
Expand Down

0 comments on commit c7a4664

Please sign in to comment.