I have had the speedometer freeze or malfunction several times.  I have found that when I park and turn off the ignition, all resets and works thereafter, until the next time, which may be a year later.  Like most electronic things.  Reset works wonders.
Larry