From 124cc9b422815b417a2f8e01bbd9a734a232a8b4 Mon Sep 17 00:00:00 2001 From: Milang Date: Thu, 31 Oct 2019 11:18:51 +0100 Subject: [PATCH] fix ll set size function --- liblog.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/liblog.c b/liblog.c index 0704338..b8f9073 100644 --- a/liblog.c +++ b/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