From ede7d06be57e3eb29b29204100cf20e286e2c0c7 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 10 Jun 2025 07:39:30 -0700 Subject: [PATCH] Fix buffering issue --- lib/preferences.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/preferences.dart b/lib/preferences.dart index 0774db2..19ec1b7 100644 --- a/lib/preferences.dart +++ b/lib/preferences.dart @@ -64,7 +64,7 @@ class Preferences { }, distanceFilter: instance.getInt(distance)?.toDouble(), locationUpdateInterval: (instance.getInt(interval) ?? 0) * 1000, - maxRecordsToPersist: instance.getBool(buffer) != false ? -1 : 0, + maxRecordsToPersist: instance.getBool(buffer) != false ? -1 : 1, logLevel: bg.Config.LOG_LEVEL_INFO, logMaxDays: 1, locationTemplate: _locationTemplate(),