re-implemented timeout to ant_get_packet