-
Notifications
You must be signed in to change notification settings - Fork 136
Description
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