Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra error info and getIOSignals() #5

Merged
merged 3 commits into from
Feb 23, 2021
Merged

Extra error info and getIOSignals() #5

merged 3 commits into from
Feb 23, 2021

Conversation

mkatliar
Copy link

Added:

  • extra information carried by exceptions thrown by RWSClient
  • getIOSignals() in RWSInterface

Comment on lines 1023 to 1027
if (!name.empty() && !value.empty())
if (type == "DI" || type == "DO")
signals[name] = digitalSignalToBool(value);
else if (type == "AI" || type == "AO")
signals[name] = std::stof(value);

Choose a reason for hiding this comment

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

Add brackets {} to first if to separate it more clearly from the second level of if, else if.

Copy link
Author

Choose a reason for hiding this comment

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

done

@mkatliar mkatliar merged commit 94f5d17 into master Feb 23, 2021
@mkatliar mkatliar deleted the error_info branch February 23, 2021 21:46
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.

2 participants