Skip to content
Snippets Groups Projects
Commit d7810b4e authored by Aaron Cuevas Lopez's avatar Aaron Cuevas Lopez
Browse files

Fix wrong index generation on renamed saving

parent c8f27568
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@
#include "Channel.h"
Channel::Channel(GenericProcessor* p, int n, ChannelType t) : index(n), processor(p), type(t), nodeIndex(0), mappedIndex(n)
Channel::Channel(GenericProcessor* p, int n, ChannelType t) : index(n), processor(p), type(t), nodeIndex(0), mappedIndex(0)
{
reset();
}
......
......@@ -369,6 +369,7 @@ void GenericProcessor::update()
ch->bitVolts = getBitVolts(ch);
ch->sourceNodeId = nodeId;
ch->nodeIndex = nidx;
ch->mappedIndex = nidx;
if (i < recordStatus.size())
{
......@@ -392,6 +393,7 @@ void GenericProcessor::update()
ch->bitVolts = getBitVolts(ch);
ch->sourceNodeId = nodeId;
ch->nodeIndex = nidx;
ch->mappedIndex = nidx;
if (j < recordStatus.size())
{
......@@ -415,6 +417,7 @@ void GenericProcessor::update()
ch->bitVolts = getBitVolts(ch);
ch->sourceNodeId = nodeId;
ch->nodeIndex = nidx;
ch->mappedIndex = nidx;
if (k < recordStatus.size())
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment