فهرست منبع

[add] the warning log for incoming data when haven't set rx_indicate.

liuxianliang 4 سال پیش
والد
کامیت
51c77b15be
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      src/cmux.c

+ 4 - 0
src/cmux.c

@@ -197,6 +197,10 @@ void cmux_vcom_isr(struct cmux *cmux, rt_uint8_t port, rt_size_t size)
     {
         cmux->vcoms[port].device.rx_indicate(&cmux->vcoms[port].device, size);
     }
+    else
+    {
+        LOG_W("channel[%02d] haven appended data, please set rx_indicate and clear receive data.", port);
+    }
 }
 
 /**