Skip to content

Commit

Permalink
Fixed IsDifferentTransponder to consider also Frequency (thanks @gibman
Browse files Browse the repository at this point in the history
…!)
  • Loading branch information
morpheusxx committed Mar 14, 2013
1 parent 08e96d9 commit 26b473e
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ public int MinorChannel
/// <returns></returns>
public override string ToString()
{
return String.Format("ATSC:{0} phys:{1} maj:{2} min:{3} mod:{4}", base.ToString(), _physicalChannel, _majorChannel,
_minorChannel, _modulation);
return String.Format("ATSC:{0} phys:{1} maj:{2} min:{3} mod:{4}", base.ToString(), _physicalChannel, _majorChannel, _minorChannel, _modulation);
}

/// <summary>
Expand Down Expand Up @@ -164,8 +163,7 @@ public override bool Equals(object obj)
/// </returns>
public override int GetHashCode()
{
return base.GetHashCode() ^ _physicalChannel.GetHashCode() ^ _majorChannel.GetHashCode() ^
_minorChannel.GetHashCode() ^ _modulation.GetHashCode();
return base.GetHashCode() ^ _physicalChannel.GetHashCode() ^ _majorChannel.GetHashCode() ^ _minorChannel.GetHashCode() ^ _modulation.GetHashCode();
}

/// <summary>
Expand All @@ -182,7 +180,8 @@ public override bool IsDifferentTransponder(IChannel channel)
}
return atscChannel.MajorChannel != MajorChannel ||
atscChannel.MinorChannel != MinorChannel ||
atscChannel.PhysicalChannel != PhysicalChannel;
atscChannel.PhysicalChannel != PhysicalChannel ||
atscChannel.Frequency != Frequency;
}
}
}

0 comments on commit 26b473e

Please sign in to comment.