Browse Source

update

master
zhaohe 2 years ago
parent
commit
92d3a87b81
  1. 9
      components/zprotocol_helper/micro_computer_module_device_script_cmder_paser.cpp
  2. 2
      components/zprotocols/zcancmder_v2

9
components/zprotocol_helper/micro_computer_module_device_script_cmder_paser.cpp

@ -15,10 +15,7 @@ void MicroComputerModuleDeviceScriptCmderPaser::do_dumpconfig(int32_t moduleId)
ICmdParserACK ack; ICmdParserACK ack;
const char paraV_cache[1][10] = {{0}}; const char paraV_cache[1][10] = {{0}};
sprintf((char*)paraV_cache[0], "%ld", moduleId); sprintf((char*)paraV_cache[0], "%ld", moduleId);
// sprintf((char*)&paraV[0][0], "%d", moduleId);
const char* paraV[1] = {paraV_cache[0]}; const char* paraV[1] = {paraV_cache[0]};
do_dumpconfig(1, (const char**)paraV, &ack); do_dumpconfig(1, (const char**)paraV, &ack);
} }
@ -142,9 +139,9 @@ typedef enum {
} }
void MicroComputerModuleDeviceScriptCmderPaser::do_dumpstate(int32_t moduleId) { void MicroComputerModuleDeviceScriptCmderPaser::do_dumpstate(int32_t moduleId) {
ICmdParserACK ack; 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); do_dumpstate(1, (const char**)paraV, &ack);
} }

2
components/zprotocols/zcancmder_v2

@ -1 +1 @@
Subproject commit 13d7f7ad0d30532ffe1ff49b5e89fafab7082956
Subproject commit eaf727ce6ed8b582b9cdbb1a501b785a54c9ee8f
Loading…
Cancel
Save