From d64aa4f291afe549bd70c0f52b3d04951605d4f4 Mon Sep 17 00:00:00 2001 From: Lizongdi <1210855344@qq.com> Date: Sat, 10 Oct 2026 10:32:09 +0800 Subject: [PATCH] =?UTF-8?q?rbcore=E6=94=AF=E6=8C=81=E5=8D=95=E7=8B=AC?= =?UTF-8?q?=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bspMCU/l_stm32.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bspMCU/l_stm32.c b/bspMCU/l_stm32.c index 3ffb53d..220a064 100644 --- a/bspMCU/l_stm32.c +++ b/bspMCU/l_stm32.c @@ -444,6 +444,7 @@ static int l_mount (lua_State *L) } #endif +#ifdef BUILD_RBCORE static int l_sendto(lua_State *L) { int MsgCenter_SendTo(const char *pszDstName, uint32_t uiMsgID, const void *pData, uint32_t uiDataLen); @@ -478,6 +479,7 @@ static int l_sendto(lua_State *L) lua_pushinteger(L, ret); return 1; } +#endif #ifdef USE_ONCHIP_FLASH @@ -794,7 +796,9 @@ int luaopen_stm32(lua_State *L) lua_register_help(L, "mount", l_mount, "mount littlefs disk"); #endif +#ifdef BUILD_RBCORE lua_register_help(L, "sendto", l_sendto, "Send msg: sendto(dst,id,data)"); +#endif return 1; }