Skip to content

Commit ec86b57

Browse files
committed
Fixed issue where race conditions forced the display to show pairing pattern instead of smiley
1 parent 5878c9a commit ec86b57

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

microbit/v2/source/main.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,11 @@ int main()
9191
printSmiley(GLAD_SMILEY);
9292

9393
uBit.sleep(400);
94-
printPairPatternAnimated();
95-
94+
if (!connected) {
95+
printPairPatternAnimated();
96+
}
97+
if (connected) {
98+
printSmiley(GLAD_SMILEY);
99+
}
96100
release_fiber();
97101
}

0 commit comments

Comments
 (0)