private void OnBytesReadFromSerial(BytesReadFromSerialEventArgs e)
 {
     BytesReadFromSerialEventHandler handler = BytesReadFromSerial;
     if (handler != null)
     {
         handler(this, e);
     }
 }
 void BytesReadFromSerialHandler(object sender, BytesReadFromSerialEventArgs e)
 {
     NDLogger.Log("Bytes read from serial:", LogLevel.Verbose);
     logBytesRead(e.RawBytes);
 }