public static bool InterfacePurgeInBuffer() { if (TcpElmStream == null) { return(false); } if (_edElmInterface == null) { return(false); } return(_edElmInterface.InterfacePurgeInBuffer()); }
public static bool InterfacePurgeInBuffer() { if ((_bluetoothSocket == null) || (_bluetoothInStream == null)) { return(false); } if (_elm327Device) { if (_edElmInterface == null) { return(false); } return(_edElmInterface.InterfacePurgeInBuffer()); } try { FlushReceiveBuffer(); } catch (Exception) { return(false); } return(true); }