From f18231765c86f87fa0e105e65caaaddde3f90f4d Mon Sep 17 00:00:00 2001 From: Sathya Laufer Date: Mon, 4 Jul 2016 14:35:57 +0200 Subject: [PATCH] Fixed: Error in determination of last channel index in most device families on packet reception. --- src/MyPeer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MyPeer.cpp b/src/MyPeer.cpp index 0de8752..7c5d7a6 100644 --- a/src/MyPeer.cpp +++ b/src/MyPeer.cpp @@ -507,7 +507,7 @@ void MyPeer::getValuesFromPacket(std::shared_ptr packet, std::vectorchannel == -2) { startChannel = 0; - endChannel = (_rpcDevice->functions.end()--)->first; + endChannel = _rpcDevice->functions.rbegin()->first; } else endChannel = startChannel; for(int32_t l = startChannel; l <= endChannel; l++)