Browse Source

update

master
zhaohe 1 year ago
parent
commit
9d2f258a42
  1. 6
      src/tab/board_ext_tab.cpp
  2. 2
      src/tab/step_motor_ctrl_tab.cpp

6
src/tab/board_ext_tab.cpp

@ -47,7 +47,8 @@ void BoardExtTab::construct(QTabWidget *fathertab) {
indexInStm32 = ICM->getAck(0);
ICM->callcmd1(getDeviceId(), kextboard_read_inio, i);
portState = ICM->getAck(0);
if (indexInStm32 == 0) break;
if (indexInStm32 == 0) continue;
ZQUI::ins()->ishow("io%d(%s):%d", i, stm32pin2str((Pin_t)indexInStm32).c_str(), portState);
} catch (const std::exception &e) {
break;
@ -63,7 +64,8 @@ void BoardExtTab::construct(QTabWidget *fathertab) {
indexInStm32 = ICM->getAck(0);
ICM->callcmd1(getDeviceId(), kextboard_read_outio, i);
portState = ICM->getAck(0);
if (indexInStm32 == 0) break;
if (indexInStm32 == 0) continue;
ZQUI::ins()->ishow("io%d(%s):%d", i, stm32pin2str((Pin_t)indexInStm32).c_str(), portState);
} catch (const std::exception &e) {
break;

2
src/tab/step_motor_ctrl_tab.cpp

@ -76,7 +76,7 @@ void StepMotorCtrlTab::construct(QTabWidget *fathertab) {
indexInStm32 = ICM->getAck(0);
ICM->callcmd1(getDeviceId(), kstep_motor_read_io_state, i);
portState = ICM->getAck(0);
if (indexInStm32 == 0) break;
if (indexInStm32 == 0) continue;
ZQUI::ins()->ishow("io%d(%s):%d", i, stm32pin2str((Pin_t)indexInStm32).c_str(), portState);
} catch (const std::exception &e) {

Loading…
Cancel
Save