Deputy makes felony stop after driver waves gun