Skip to content

Commit

Permalink
fixed bug in analyzer settings, now works with Logic2.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus10110 committed Mar 19, 2020
1 parent 81b0e01 commit d77e43c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/SMBusAnalyzerSettings.cpp
Expand Up @@ -61,10 +61,9 @@ bool SMBusAnalyzerSettings::SetSettingsFromInterfaces()
return false;
}

const int NUM_CHANNELS = 4;
Channel all_channels[NUM_CHANNELS] = {mSMBDATInterface.GetChannel(), mSMBCLKInterface.GetChannel()};
std::vector<Channel> all_channels{mSMBDATInterface.GetChannel(), mSMBCLKInterface.GetChannel()};

if (AnalyzerHelpers::DoChannelsOverlap(all_channels, NUM_CHANNELS))
if (AnalyzerHelpers::DoChannelsOverlap(all_channels.data(), all_channels.size()))
{
SetErrorText("Please select different inputs for the channels.");
return false;
Expand Down

0 comments on commit d77e43c

Please sign in to comment.