public int Read() { var t = _wrapped.Read(); if (t != -1) { LogRead((char)t); } return(t); }
protected int Read() { int t; int cnt = 0; while ((t = _uartService.Read()) == -1) { System.Threading.Thread.Sleep(sleep); cnt++; if (cnt > tryCnt) { return(-1); } } return(t); }