Browse Source

Solve the problem that LOG_W() may not be recognized when the INPUT CAPTURE module is enabled,which may cause the compilation failure.

Jiang Runnan 2 years ago
parent
commit
37fcfdb972
1 changed files with 4 additions and 0 deletions
  1. 4 0
      components/drivers/misc/rt_inputcapture.c

+ 4 - 0
components/drivers/misc/rt_inputcapture.c

@@ -10,6 +10,10 @@
 
 
 #include <rtdevice.h>
 #include <rtdevice.h>
 
 
+#define DBG_TAG "incap"
+#define DBG_LVL DBG_WARNING
+#include <rtdbg.h>
+
 static rt_err_t rt_inputcapture_init(struct rt_device *dev)
 static rt_err_t rt_inputcapture_init(struct rt_device *dev)
 {
 {
     rt_err_t ret;
     rt_err_t ret;