This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LP-CC2652R7: Error in setting the counter

Part Number: LP-CC2652R7

Hello,

I am trying to setup the counter in the following way in the SC_EVT_ADV_REPORT Case of SimpleCentral_processAppMsg function - 

if (strcmp(Util_convertBytes2Str(pAdvRpt->addr) == "F0F8F228E445"))
{
counter = counter + 1;
Display_print1(dispHandle, 4, 0, "Counter: %d",counter);

}

I keep on receiving  -  error: function definition is not allowed here.

Can you please help me resolve this?