Skip to content

Commit

Permalink
slip: 不打印 serial_read/write 异常
Browse files Browse the repository at this point in the history
* 统一在上层打印

Signed-off-by: xychen <[email protected]>
  • Loading branch information
xychen committed Mar 13, 2024
1 parent 701b338 commit cb50e99
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions libslip/src/slip.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ slip_read(slip_dev_t *dev, uint8_t *buf, size_t count, uint64_t timeout)
while (rx_tail < rx_buf_tail) {
ssize_t r = serial_read(dev->serial, rx_tail, rx_buf_tail - rx_tail, timeout);
if (r < 0) {
if (r != -ETIMEDOUT) {
LOGD_RET(r, "DEBUG: Failed reading command");
}
return r;
}

Expand Down Expand Up @@ -159,7 +156,6 @@ slip_write(slip_dev_t *dev, const uint8_t *buf, size_t count, uint64_t timeout)
while (tx_head < tx_tail) {
ssize_t r = serial_write(dev->serial, tx_head, tx_tail - tx_head, timeout);
if (r < 0) {
LOGD_RET(r, "DEBUG: Failed writing command");
return r;
}

Expand Down

0 comments on commit cb50e99

Please sign in to comment.