fix ll set size function

This commit is contained in:
Milang 2019-10-31 11:18:51 +01:00
parent f958a155e3
commit 124cc9b422
1 changed files with 10 additions and 8 deletions

View File

@ -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)