コード例 #1
0
 public static bool InterfacePurgeInBuffer()
 {
     if (TcpElmStream == null)
     {
         return(false);
     }
     if (_edElmInterface == null)
     {
         return(false);
     }
     return(_edElmInterface.InterfacePurgeInBuffer());
 }
コード例 #2
0
 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);
 }