microbit-dal: Fixed a bug on printing a character with a delay
Previously when a blocking print finished, the animatemode was not reset, which meant sometimes there would be a race condition.
This commit is contained in:
parent
f8ebfc69fb
commit
d7b3ba9dab
1 changed files with 3 additions and 1 deletions
|
@ -232,8 +232,10 @@ MicroBitDisplay::animationUpdate()
|
|||
this->updateAnimateImage();
|
||||
|
||||
if(animationMode == ANIMATION_MODE_PRINT_CHARACTER)
|
||||
{
|
||||
animationMode = ANIMATION_MODE_NONE;
|
||||
this->sendEvent(MICROBIT_DISPLAY_EVT_ANIMATION_COMPLETE);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue