Browse Source

fix read io state fail

master
zhaohe 2 years ago
parent
commit
bc3d38b24d
  1. 4
      components/zcancmder/zcan_board_module.hpp
  2. 2
      components/zprotocol_helper/micro_computer_module_device_script_cmder_paser.cpp

4
components/zcancmder/zcan_board_module.hpp

@ -42,8 +42,8 @@ class ZCanBoardModule : public ZIModule {
hardware_config_t m_cfg;
int32_t module_id;
ZGPIO m_input[16];
ZGPIO m_output[16];
ZGPIO m_input[32];
ZGPIO m_output[32];
int32_t m_input_num = 0;
int32_t m_output_num = 0;

2
components/zprotocol_helper/micro_computer_module_device_script_cmder_paser.cpp

@ -109,7 +109,7 @@ void MicroComputerModuleDeviceScriptCmderPaser::app_dump_reg(int moduleId, const
if (ecode == 0) {
if (type == kint) {
ZLOGI(TAG, "%s(%d) :%d", configtag, configid, configval);
} else if (type == kint) {
} else if (type == kbit) {
ZLOGI(TAG, "%s(%d) :%s", configtag, configid, dumpbit(configval));
}
} else if (ecode != err::kmodule_not_find_config_index) {

Loading…
Cancel
Save