From 9d2f258a420110c2b88e1b1d6c038332b67f4aca Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sat, 8 Jun 2024 20:28:29 +0800 Subject: [PATCH] update --- src/tab/board_ext_tab.cpp | 6 ++++-- src/tab/step_motor_ctrl_tab.cpp | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/tab/board_ext_tab.cpp b/src/tab/board_ext_tab.cpp index adbc2bf..cefb2ab 100644 --- a/src/tab/board_ext_tab.cpp +++ b/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; diff --git a/src/tab/step_motor_ctrl_tab.cpp b/src/tab/step_motor_ctrl_tab.cpp index 81f7922..baef153 100644 --- a/src/tab/step_motor_ctrl_tab.cpp +++ b/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) {