From 92d3a87b81b8e5ccf0e7d7c9cdf25987f8993ce0 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Mon, 23 Oct 2023 18:42:33 +0800 Subject: [PATCH] update --- .../micro_computer_module_device_script_cmder_paser.cpp | 9 +++------ components/zprotocols/zcancmder_v2 | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/components/zprotocol_helper/micro_computer_module_device_script_cmder_paser.cpp b/components/zprotocol_helper/micro_computer_module_device_script_cmder_paser.cpp index 58a1225..495f483 100644 --- a/components/zprotocol_helper/micro_computer_module_device_script_cmder_paser.cpp +++ b/components/zprotocol_helper/micro_computer_module_device_script_cmder_paser.cpp @@ -15,10 +15,7 @@ void MicroComputerModuleDeviceScriptCmderPaser::do_dumpconfig(int32_t moduleId) ICmdParserACK ack; const char paraV_cache[1][10] = {{0}}; sprintf((char*)paraV_cache[0], "%ld", moduleId); - // sprintf((char*)¶V[0][0], "%d", moduleId); - const char* paraV[1] = {paraV_cache[0]}; - do_dumpconfig(1, (const char**)paraV, &ack); } @@ -142,9 +139,9 @@ typedef enum { } void MicroComputerModuleDeviceScriptCmderPaser::do_dumpstate(int32_t moduleId) { ICmdParserACK ack; - const char paraV[1][10] = {{0}}; - sprintf((char*)paraV[0], "%d", moduleId); - + const char paraV_cache[1][10] = {{0}}; + sprintf((char*)paraV_cache[0], "%ld", moduleId); + const char* paraV[1] = {paraV_cache[0]}; do_dumpstate(1, (const char**)paraV, &ack); } diff --git a/components/zprotocols/zcancmder_v2 b/components/zprotocols/zcancmder_v2 index 13d7f7a..eaf727c 160000 --- a/components/zprotocols/zcancmder_v2 +++ b/components/zprotocols/zcancmder_v2 @@ -1 +1 @@ -Subproject commit 13d7f7ad0d30532ffe1ff49b5e89fafab7082956 +Subproject commit eaf727ce6ed8b582b9cdbb1a501b785a54c9ee8f