-
Notifications
You must be signed in to change notification settings - Fork 416
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
Inconvenient way of getting meaning of packet result and error value #67
Comments
Hi, Thank you for your will of contribution. |
I'll check whether there is another examples with another languages which needs to be done as same, |
@ROBOTIS-Leon I saw that you deprecated |
Hi, again Thank you for pointing out. Yes, obviously, the latter. |
@ROBOTIS-Leon Hi :) What ideas do you mean? Alternative to runtime output about deprecation and [[deprecated]] attribute? |
Yes, if you have |
@ROBOTIS-Leon First of all, sorry for long silence, last few months were rather busy for me. I found this for simulating Additionally, C++14's solution could be accessible, too, because it is possible to check if selected feature is supported during compilation - via __cplusplus macro or via compiler vendor and version (much more reliable solution, but at the price of more time-consuming and tedious implementation). |
I found out
packet_handler::printTxRxResult
andpacket_handler::printRxPacketError
to be a very inconvenient way of getting meaning of communication result and hardware error values, because it's enforcing the user what to do with that meaning and when, by printing it to a standard output at the moment of the call.In my opinion, the better idea would be to have functions, which would return a proper string instead. The original ones could be kept for backward compatibility, but internally they could use the new ones.
I could even volunteer to implement them. After all, it's only a little modification to existing algorithm.
The text was updated successfully, but these errors were encountered: