fix ll set size function
This commit is contained in:
parent
f958a155e3
commit
124cc9b422
18
liblog.c
18
liblog.c
|
@ -10,14 +10,14 @@
|
|||
|
||||
#ifdef FX9860G
|
||||
|
||||
static int number_max_messages=4096;
|
||||
static int number_max_messages=4096; // Ram 4Ko
|
||||
#define MAX_LENGHT 22
|
||||
#define WIDTH 8
|
||||
|
||||
#endif
|
||||
#ifdef FXCG50
|
||||
|
||||
static int number_max_messages=10000;
|
||||
static int number_max_messages=10000; // Ram 10 Ko
|
||||
#define MAX_LENGHT 132
|
||||
#define WIDTH 17
|
||||
|
||||
|
@ -75,7 +75,7 @@ static void optimize()
|
|||
|
||||
void ll_set_size(int s)
|
||||
{
|
||||
number_messages=s;
|
||||
number_max_messages=s;
|
||||
optimize();
|
||||
}
|
||||
|
||||
|
@ -228,11 +228,12 @@ void ll_display()
|
|||
{
|
||||
ll_display_custom(current_line);
|
||||
}
|
||||
|
||||
|
||||
void ll_pause()
|
||||
{
|
||||
for (int i=0; i<timer_count(); i++)
|
||||
timer_pause(i);
|
||||
//for (int i=0; i<timer_count(); i++)
|
||||
// if (i!=3) // keyboard timer
|
||||
// timer_pause(i);
|
||||
dclear(C_WHITE);
|
||||
log_line* line=current_line;
|
||||
while (1)
|
||||
|
@ -254,8 +255,9 @@ void ll_pause()
|
|||
if (key==KEY_EXIT)
|
||||
break;
|
||||
}
|
||||
for (int i=0; i<timer_count(); i++)
|
||||
timer_start(i);
|
||||
//for (int i=0; i<timer_count(); i++)
|
||||
// if (i!=3)
|
||||
// timer_start(i);
|
||||
}
|
||||
|
||||
GNORETURN void ll_panic(uint32_t code)
|
||||
|
|
Loading…
Reference in New Issue