The data members _suspend and _lastRunTime of class MD_PZone are not initialized explicitly, so they will contain random values when the MD_Parola object is created dynamically on the heap.
(In contrast, if an object is created statically, all its data members are automatically initialized with zeros.)
That leads to a problem in MD_PZone::zoneAnimate because this method returns early when _suspend is non-zero. In that case the LED display stays dark.
The change initializes _suspend to false and _lastRunTime to 0 in the MD_PZone constructor.
The data members
_suspend
and_lastRunTime
of classMD_PZone
are not initialized explicitly, so they will contain random values when theMD_Parola
object is created dynamically on the heap.(In contrast, if an object is created statically, all its data members are automatically initialized with zeros.)
That leads to a problem in
MD_PZone::zoneAnimate
because this method returns early when_suspend
is non-zero. In that case the LED display stays dark.The change initializes
_suspend
tofalse
and_lastRunTime
to0
in theMD_PZone
constructor.