while(1){.....if(rx_complete){rx_complete = 0;switch(func()){....case 0x5B:goto End;....}}....}End:
E-mail: info@telesys.ru