Dozingfiretruck 4 месяцев назад
Родитель
Сommit
7135329157
1 измененных файлов с 1 добавлено и 1 удалено
  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);