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

update to new syntax required: ESP8266SerialWifiBridge #137

Open
pizzadriver1 opened this issue Dec 3, 2020 · 0 comments
Open

update to new syntax required: ESP8266SerialWifiBridge #137

pizzadriver1 opened this issue Dec 3, 2020 · 0 comments

Comments

@pizzadriver1
Copy link

In the conditional expression
if (memcmp(configMsg, CONFIG_MSG_START, min(strlen(CONFIG_MSG_START), configMsgLen)) != 0 ) { configMsgLen = 0; // discard all we have got so far }
there is an issue, which prevents the .ino file from beeing compiled: The definition of min(..., ...) has obviously changed in the meantime. It needs the type to be compared ( min(..., ...) ). Changing it to
if (memcmp(configMsg, CONFIG_MSG_START, min<uint8_t>(strlen(CONFIG_MSG_START), configMsgLen)) != 0 ) { configMsgLen = 0; // discard all we have got so far }
solves the problem for me. uint8_t is the type of configMsgLen as given by the error message. Can anybody please doublecheck if unint8_t is the right type for strlen(CONFIG_MSG_START) as well?

Best,
pizzadriver1

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