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