-
Notifications
You must be signed in to change notification settings - Fork 1
get serial number from Visionary T-Mini #2
Comments
Current Behaviour: Expected Behaviour: Steps to reproduce: Versions: Environment: Additional information: |
Hello @maurizioscolasipi, |
Hello everybody, If I execute: std::string sn = ""; and I set a breakpoint I see that the program counter jump the line CoLaCommand getSerialNumber = CoLaParameterWriter(CoLaCommandType::READ_VARIABLE, "SerialNumber").build(); and it works! I think the printf instruction forces Visual Studio to evaluate correctly serialNumberResponse.getError() but it's a very strange behaviour. Now I modified again the code: CoLaCommand getSerialNumber = CoLaParameterWriter(CoLaCommandType::READ_VARIABLE, "SerialNumber").build(); and it works! Can anybody explain to me this strange behaviour? |
Hello @maurizioscolasipi, We’re glad that you’ve been able to solve your issue. Unfortunately, we cannot explain the undefined behavior you’re experiencing with your code. As a hint, you can check if you’re using code optimization in the Visual Studio debugger. If it’s enabled, turn it off and run your code again. Hope this helps. |
Hello xfealal, |
Prerequisites
Put an X between the brackets on this line if you have done all of the following:
Current Behavior:
Expected Behavior:
Steps to Reproduce
Versions/Environment
Additional Information
The text was updated successfully, but these errors were encountered: