diff options
-rw-r--r-- | apps/plugins/lib/grey_core.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/plugins/lib/grey_core.c b/apps/plugins/lib/grey_core.c index 143d09a6a6..b4e7dfd1f4 100644 --- a/apps/plugins/lib/grey_core.c +++ b/apps/plugins/lib/grey_core.c | |||
@@ -614,12 +614,15 @@ void grey_show(bool enable) | |||
614 | { | 614 | { |
615 | #ifdef SIMULATOR | 615 | #ifdef SIMULATOR |
616 | _grey_info.rb->sim_lcd_ex_init(0, NULL); | 616 | _grey_info.rb->sim_lcd_ex_init(0, NULL); |
617 | #else | 617 | #else /* !SIMULATOR */ |
618 | _grey_info.rb->timer_unregister(); | 618 | _grey_info.rb->timer_unregister(); |
619 | #if NUM_CORES > 1 /* Make sure the ISR has finished before calling lcd_update() */ | ||
620 | _grey_info.rb->sleep(HZ/100); | ||
621 | #endif | ||
619 | #ifdef NEED_BOOST | 622 | #ifdef NEED_BOOST |
620 | _grey_info.rb->cpu_boost(false); | 623 | _grey_info.rb->cpu_boost(false); |
621 | #endif | 624 | #endif |
622 | #endif | 625 | #endif /* !SIMULATOR */ |
623 | _grey_info.flags &= ~_GREY_RUNNING; | 626 | _grey_info.flags &= ~_GREY_RUNNING; |
624 | _grey_info.rb->screen_dump_set_hook(NULL); | 627 | _grey_info.rb->screen_dump_set_hook(NULL); |
625 | _grey_info.rb->lcd_update(); /* restore whatever there was before */ | 628 | _grey_info.rb->lcd_update(); /* restore whatever there was before */ |