diff --git a/Source/Processors/DataThreads/RHD2000Editor.cpp b/Source/Processors/DataThreads/RHD2000Editor.cpp index e8043fcb2a1f318e59194611c90d52249d143abe..e5048cce4bbe77cf899113d20abb872e927690e6 100644 --- a/Source/Processors/DataThreads/RHD2000Editor.cpp +++ b/Source/Processors/DataThreads/RHD2000Editor.cpp @@ -308,18 +308,10 @@ void FPGAchannelList::comboBoxChanged(ComboBox* b) void FPGAchannelList::updateImpedance(Array<int> streams, Array<int> channels, Array<float> magnitude, Array<float> phase) { - for (int k=0; k<streams.size(); k++) - { - for (int j=k; j<stream.size(); j++) - { - if (stream[j] == streams[k] && types[j] == HEADSTAGE_CHANNEL && orig_number[j] == channels[k]) - { - channelComponents[j]->setImpedanceValues(magnitude[k],phase[k]); - break; - } - - } - } + for (int k = 0; k < streams.size(); k++) + { + channelComponents[k]->setImpedanceValues(magnitude[k], phase[k]); + } } diff --git a/Source/Processors/DataThreads/RHD2000Editor.h b/Source/Processors/DataThreads/RHD2000Editor.h index ef8bea16558f425b4f31025aef31ca97903181d8..c3d1559f89aee4ea43f7f6521748eb18cd2423c4 100644 --- a/Source/Processors/DataThreads/RHD2000Editor.h +++ b/Source/Processors/DataThreads/RHD2000Editor.h @@ -75,8 +75,6 @@ public: private: Array<float> gains; Array<ChannelType> types; - Array<int> stream; - Array<int> orig_number; bool chainUpdate;