From 0e7180c29cc86ca56698b16f5f973fe188a918a1 Mon Sep 17 00:00:00 2001 From: devl0rd Date: Wed, 4 Dec 2024 21:56:43 +0700 Subject: [PATCH] reduce battery history size --- src/batmon/batmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/batmon/batmon.c b/src/batmon/batmon.c index d7182b92f..0725b98fc 100644 --- a/src/batmon/batmon.c +++ b/src/batmon/batmon.c @@ -339,7 +339,7 @@ void saveFakeAxpResult(int current_percentage) } } -#define HISTORY_SIZE 10 // Number of values to keep in the history +#define HISTORY_SIZE 5 // Number of values to smooth battery percentage int updateADCValue(int value) {