why delay in this code?

if(Serial.available())
{
uint8_t i=uart_read();
if(i==1 && strstr(uart_buff,"CONFIG"))
{
WiFi_Config();
}

Would be more helpful to provide the complete program. I have no idea what Send_Status is doing.