/* The uIP network application that detects the XCP connect command on the port used by the bootloader. This indicates that the bootloader should be activated.  */
void NetApp(void)
/* The uIP network application that detects the XCP connect command on the port used by the bootloader. This indicates that the bootloader should be activated.  */
void NetApp(void)
{
  unsigned char *newDataPtr;
  unsigned short newDataLen;
  if (uip_connected()) 
  {
    return;
  }
  if (uip_newdata()) 
  {
    newDataPtr = uip_appdata;
    newDataPtr += 4;
    newDataLen = uip_datalen() - 4;
    if ((newDataPtr[0] == 0xff) && (newDataLen == 2))
    {
      SharedParamsWriteByIndex(0, 1);
      BootActivate();
    }
  }
}