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 3658e4d commit f182317
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MyPeer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ void MyPeer::getValuesFromPacket(std::shared_ptr<MyPacket> packet, std::vector<F
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 f182317

Please sign in to comment.