Browse Source

Merge branch 'master' of gitee.com:openLuat/LuatOS

Wendal Chen 4 years ago
parent
commit
87a00d98c4
2 changed files with 3 additions and 1 deletions
  1. 2 0
      luat/include/luat_log.h
  2. 1 1
      luat/weak/luat_log_weak.c

+ 2 - 0
luat/include/luat_log.h

@@ -10,6 +10,8 @@
 #define LUAT_LOG_ERROR 4
 #define LUAT_LOG_CLOSE 7
 
+extern uint8_t luat_log_uart_port;
+
 // void luat_print(const char* _str);
 void luat_nprint(char *s, size_t l);
 void luat_log_write(char *s, size_t l);

+ 1 - 1
luat/weak/luat_log_weak.c

@@ -6,7 +6,7 @@
 #include "luat_cmux.h"
 #include "luat_conf_bsp.h"
 
-static uint8_t luat_log_uart_port = 0;
+uint8_t luat_log_uart_port = 0;
 static uint8_t luat_log_level_cur = LUAT_LOG_DEBUG;
 
 #define LOGLOG_SIZE 1024