Explorar o código

fix:修复编译报错

Dozingfiretruck hai 4 meses
pai
achega
7135329157
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      luat/modules/luat_lib_uart.c

+ 1 - 1
luat/modules/luat_lib_uart.c

@@ -402,7 +402,7 @@ int l_uart_handler(lua_State *L, void* ptr) {
     if (msg->arg2 == 0) {
         // LLOGD("uart%ld sent callback", uart_id);
 		if (uart_app_sents[uart_id]) {
-            uart_app_sents[uart_id](uart_id, msg->arg2);
+            uart_app_sents[uart_id](uart_id, (void *)msg->arg2);
         }
         if (uart_cbs[uart_id].sent) {
             lua_geti(L, LUA_REGISTRYINDEX, uart_cbs[uart_id].sent);