Skip to content

Commit

Permalink
Add cbSendPacketToInstrument wrapper and remove many #ifdef CBPROTO_311
Browse files Browse the repository at this point in the history
  • Loading branch information
cboulay committed Sep 5, 2023
1 parent 453c640 commit 3743dd8
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 176 deletions.
5 changes: 1 addition & 4 deletions cbhwlib/InstNetwork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -581,10 +581,7 @@ void InstNetwork::timerEvent(QTimerEvent * /*event*/)
pktgeneric.cbpkt_header.chid = 0x8000;
pktgeneric.cbpkt_header.type = cbPKTTYPE_REQCONFIGALL;
pktgeneric.cbpkt_header.dlen = 0;
#ifndef CBPROTO_311
pktgeneric.cbpkt_header.instrument = 0;
#endif
cbSendPacket(&pktgeneric, m_nInstance);
cbSendPacketToInstrument(&pktgeneric, m_nInstance, 0);
}
// at 2.0 seconds, if not already running, do soft reset, which will lead to running state.
else if (m_timerTicks == 200)
Expand Down
Loading

0 comments on commit 3743dd8

Please sign in to comment.