From 94dcafd869903e3d751705a235ed8dd94f0bb0f9 Mon Sep 17 00:00:00 2001 From: Lizongdi <1210855344@qq.com> Date: Fri, 21 Aug 2026 14:17:53 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=B8=BB=E7=BA=BF=E5=BE=85=E5=90=88?= =?UTF-8?q?=E3=80=91=E5=A2=9E=E5=8A=A0=E4=BC=A0=E9=80=92=E6=95=B0=E5=80=BC?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bspMCU/l_stm32.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bspMCU/l_stm32.c b/bspMCU/l_stm32.c index 06cc3ed..f89b9d3 100644 --- a/bspMCU/l_stm32.c +++ b/bspMCU/l_stm32.c @@ -440,6 +440,13 @@ static int l_sendto(lua_State *L) } pData = buf; } + else if (lua_isinteger(L, 3)) + { + static int32_t val; + val = (int32_t)lua_tointeger(L, 3); + pData = &val; + uiDataLen = sizeof(val); + } int ret = MsgCenter_SendTo(pszDstName, uiMsgID, pData, uiDataLen); lua_pushinteger(L, ret);