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

START_PARAM_LOOP() Macro issue #7

Open
SimonPeacock opened this issue Apr 25, 2024 · 0 comments
Open

START_PARAM_LOOP() Macro issue #7

SimonPeacock opened this issue Apr 25, 2024 · 0 comments

Comments

@SimonPeacock
Copy link

At the end of the START_PARAM_LOOP() macro, there is a trailing '\' which links the next line into the macro. Although this isn't an issue since the next line is a blank line, anything following the START_PARAM_LOOP() will be automatically included in the macro. (may cause an unforeseen issue at a later time).

#define START_PARAM_LOOP() uint8_t exitcode = 0U;\
do {\
if (atcc_extractElement(p_at_ctxt, p_msg_in, element_infos) != ATENDMSG_NO) {exitcode = 1U;}\
if (element_infos->str_size != 0U)\
{\

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

No branches or pull requests

1 participant