mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-10 14:20:55 +00:00
fixed isLive calculation in case of tracked race without GPS data
This commit is contained in:
1 parent
a51fe0f950
commit
7676c66bbf
1 file changed
+1
-1
+1
-1
@@ -252,7 +252,7 @@ public class RaceContext {
|
||||
private boolean isLiveOrOfPublicInterest(TimePoint startTime, TimePoint finishTime) {
|
||||
boolean result = false;
|
||||
if(startTime != null && raceLog != null) {
|
||||
if(trackedRace != null) {
|
||||
if(trackedRace != null && trackedRace.hasGPSData() && trackedRace.hasWindData()) {
|
||||
result = trackedRace.isLive(now);
|
||||
} else {
|
||||
// no data from tracking but maybe a manual setting of the start and finish time
|
||||
|
||||
Reference in new issue
Block a user