(a) A person commits an offense if the person violates a provision of this chapter other than a provision for which a specific offense is otherwise described by this chapter.
(b) An offense under this section is a Class B misdemeanor, unless it is shown on the trial of the defendant that the defendant has previously been convicted of an offense under this chapter, in which event the offense is a Class A misdemeanor.