public static bool Equals(C4FMSymbol symbol, C4FMSymbol other) { if (other == null) return false; else return (other.getBit1() == symbol.getBit1() && other.getBit2() == symbol.getBit2()); }
public static bool Equals(C4FMSymbol symbol, C4FMSymbol other) { if (other == null) { return(false); } else { return(other.getBit1() == symbol.getBit1() && other.getBit2() == symbol.getBit2()); } }
public void receive(C4FMSymbol symbol) { if (mActive) { /* Throw away status bits that are injected every 70 bits */ if (mMessage.pointer() == STATUS_BITS[mStatusIndicatorPointer]) { mStatusIndicatorPointer++; } else { mMessage.Add(symbol.getBit1()); mMessage.Add(symbol.getBit2()); /* Check the message for complete */ if (mMessage.IsFull()) { checkComplete(); } } } }