Hi,
Is there any initialization value for ret_code_t?
I have some issues with static code analysis, regarding uninitialized variables.
Thanks!
Hi,
Is there any initialization value for ret_code_t?
I have some issues with static code analysis, regarding uninitialized variables.
Thanks!
Hello,
You could initialize it to NRF_SUCCSESS - value 0 - if you would like.
Best regards,
Karl
Hello,
You could initialize it to NRF_SUCCSESS - value 0 - if you would like.
Best regards,
Karl
Hi,
Thanks! I've meant to something that is different than NRF_SUCCSESS. Same as initializing pointers to NULL.
I understand. Well, you could initialize it to other things as well - any other valid uint32_t value - but it would then fail any APP_ERROR_CHECK if passed to it before being populated by another function call, causing the device to reset.
Best regards,
Karl
I understand - thanks!
No problem at all, I am happy to help!
Please do not hesitate to open another ticket if you should encounter any other issues or questions in the future.
Good luck with your development!
Best regards,
Karl