Skip to content

Calibration fix for dse wtx#1

Open
rs-hbk wants to merge 3 commits intomasterfrom
Calibration-Fix-For-DSE-WTX
Open

Calibration fix for dse wtx#1
rs-hbk wants to merge 3 commits intomasterfrom
Calibration-Fix-For-DSE-WTX

Conversation

@rs-hbk
Copy link

@rs-hbk rs-hbk commented Mar 22, 2021

No description provided.


while (Convert.ToInt32(Connection.ReadFromBuffer(JetBusCommands.CIA461ScaleCommandStatus)) != SCALE_COMMAND_STATUS_ONGOING)
int com = Convert.ToInt32(Connection.ReadFromBuffer(JetBusCommands.CIA461ScaleCommandStatus));
while ((com != SCALE_COMMAND_STATUS_ONGOING) && (com != SCALE_COMMAND_STATUS_OK))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Roland,
How is that supposed to work?
The loop will only break, if status is not ONGOING and not OK ???
Think about a minimum delay before entering the ONGOING loop!
BR
Dirk

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Dirk,
I'm sorry but I think you got your logic backwards.
Actually the loop will continue if the status is neither ONGOING nor OK.
Meaning it will break if the status reaches either ONGOING or OK.

Again, sorry for replying to a three year old issue. I just couldn't help but notice.


while (Convert.ToInt32(Connection.ReadFromBuffer(JetBusCommands.CIA461ScaleCommandStatus)) != SCALE_COMMAND_STATUS_ONGOING)
int com = Convert.ToInt32(Connection.ReadFromBuffer(JetBusCommands.CIA461ScaleCommandStatus));
while ((com != SCALE_COMMAND_STATUS_ONGOING) && (com != SCALE_COMMAND_STATUS_OK))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants