Trial avoided with plea on drunk driving charges