add timer pause when display function is called

This commit is contained in:
Milang 2019-10-31 11:01:23 +01:00
parent 6dcb04544b
commit f958a155e3
1 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,7 @@
#include <gint/defs/attributes.h>
#include <liblog.h>
#include <stdint.h>
#include <gint/timer.h>
#ifdef FX9860G
@ -230,6 +231,8 @@ void ll_display()
void ll_pause()
{
for (int i=0; i<timer_count(); i++)
timer_pause(i);
dclear(C_WHITE);
log_line* line=current_line;
while (1)
@ -251,6 +254,8 @@ void ll_pause()
if (key==KEY_EXIT)
break;
}
for (int i=0; i<timer_count(); i++)
timer_start(i);
}
GNORETURN void ll_panic(uint32_t code)