We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00d4335 commit 3895621Copy full SHA for 3895621
src/eez/modules/mcu/simulator/display.cpp
@@ -264,23 +264,23 @@ void animate() {
264
}
265
266
void sync() {
267
+ if (g_animationState.enabled) {
268
+ animate();
269
+ }
270
+
271
+#ifdef __EMSCRIPTEN__
272
273
+ return;
274
275
+#endif
276
277
if (isOn() && g_painted) {
278
g_painted = false;
279
280
if (g_mainWindow == nullptr) {
281
init();
282
283
- if (g_animationState.enabled) {
- animate();
- }
-
-#ifdef __EMSCRIPTEN__
- return;
-#endif
284
updateScreen(g_frontPanelBuffer);
285
286
if (g_frontPanelBuffer == g_frontPanelBuffer1) {
0 commit comments