Browse Source

update

master
zhaohe 2 years ago
parent
commit
d178ffda5f
  1. 2
      components/xy_robot_ctrl_module/xy_robot_ctrl_module.cpp

2
components/xy_robot_ctrl_module/xy_robot_ctrl_module.cpp

@ -283,7 +283,7 @@ int32_t XYRobotCtrlModule::read_detailed_status(detailed_status_t& debug_info) {
debug_info.iostate = 0xff;
for (int i = 0; i < m_ngpio; i++) {
if (i > 7) break;
ZLOGI(TAG, "read_detailed_status i:%d", i);
// ZLOGI(TAG, "read_detailed_status i:%d %d", i,m_gpiotable[i].getState());
if (!m_gpiotable[i].getState()) debug_info.iostate &= ~(1 << i);
}

Loading…
Cancel
Save