Man, Jianting (Meco) il y a 4 ans
Parent
commit
6e0cf87199
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3 2
      rt_kprintf.c

+ 3 - 2
rt_kprintf.c

@@ -11,7 +11,9 @@
 #include <rtthread.h>
 #include <rthw.h>
 
-#ifdef RT_USING_CONSOLE
+#ifndef RT_USING_CONSOLE
+#error "Please enable console"
+#endif
 
 #undef RT_USING_SEMAPHORE /* Don't use semaphore protection method by default because of real-time environment */
 
@@ -112,4 +114,3 @@ void rt_kprintf(const char *fmt, ...)
     return length; /* the total number of printed characters */
 #endif
 }
-#endif /*RT_USING_CONSOLE*/