From a057fe448f0e9139c828d8a6d64e6042f97f11b6 Mon Sep 17 00:00:00 2001 From: barbeau Date: Tue, 10 Dec 2024 13:44:51 -0500 Subject: [PATCH] fix: Fix Status log signal count and signal index values Fixes https://github.com/barbeau/gpstest/issues/696 --- GPSTest/src/main/java/com/android/gpstest/io/CsvFileLogger.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPSTest/src/main/java/com/android/gpstest/io/CsvFileLogger.java b/GPSTest/src/main/java/com/android/gpstest/io/CsvFileLogger.java index 8c79f3449..528683b0f 100644 --- a/GPSTest/src/main/java/com/android/gpstest/io/CsvFileLogger.java +++ b/GPSTest/src/main/java/com/android/gpstest/io/CsvFileLogger.java @@ -219,7 +219,7 @@ public synchronized void onGnssStatusChanged(List statuses, Loc int i = 0; for (SatelliteStatus s : statuses) { try { - writeStatusToFile(s, location != null ? location.getTime() : 0, i, statuses.size()); + writeStatusToFile(s, location != null ? location.getTime() : 0, statuses.size(), i); } catch (IOException e) { logException(Application.Companion.getApp().getString(R.string.error_writing_file), e); }