You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to check which version of mbed-os is present e.g. 5.1 versus 5.2? It would be nice if there were some macro such as MBED_VERSION to check against, but I don't see one.
I was trying to get some code to compile cleanly against both 5.1 and (release candidate) 5.2. In 5.2, some methods are deprecated, resulting in warnings, but the alternatives are not available in 5.1. For example Callback(func, arg) c.f. Callback(arg, func).
Sure, I can find some other shibboleth such as MBED_CONF_CORE_STDIO_BAUD_RATE (renamed to MBED_CONF_PLATFORM_STDIO_BAUD_RATE in 5.2) but that doesn't smell right.
The text was updated successfully, but these errors were encountered:
Description
Question
Is there a way to check which version of mbed-os is present e.g. 5.1 versus 5.2? It would be nice if there were some macro such as MBED_VERSION to check against, but I don't see one.
I was trying to get some code to compile cleanly against both 5.1 and (release candidate) 5.2. In 5.2, some methods are deprecated, resulting in warnings, but the alternatives are not available in 5.1. For example Callback(func, arg) c.f. Callback(arg, func).
Sure, I can find some other shibboleth such as MBED_CONF_CORE_STDIO_BAUD_RATE (renamed to MBED_CONF_PLATFORM_STDIO_BAUD_RATE in 5.2) but that doesn't smell right.
The text was updated successfully, but these errors were encountered: