/* Function called from I2C IRQ Handler when STOP flag is set Function is in charge of checking data received, LED2 is On if data are correct.  */
void Slave_Complete_Callback(void)
/* Function called from I2C IRQ Handler when STOP flag is set Function is in charge of checking data received, LED2 is On if data are correct.  */
void Slave_Complete_Callback(void)
{
  if(Buffercmp8((uint8_t*)aReceiveBuffer, (uint8_t*)aLedOn, (ubReceiveIndex-1)) == 0)
  {
    LED_On();
  }
  else
  {
    Error_Callback();
  }
}