mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-25 06:58:39 +00:00
Moved away from breaking out of the loop as this requires druidic knowledge about a method that could change in future
This commit is contained in:
+5
-1
@@ -139,13 +139,17 @@ public class IgtimiWindReceiver implements BulkFixReceiver {
|
||||
});
|
||||
}
|
||||
logger.fine("Received "+Util.size(awsFixes)+" wind fixes");
|
||||
boolean loggedWindFixGenerationProblem = false;
|
||||
for (AWS aws : awsFixes) {
|
||||
try {
|
||||
final Wind wind = getWind(aws.getTimePoint());
|
||||
if (wind != null) {
|
||||
notifyListeners(wind, aws.getSensor().getDeviceSerialNumber());
|
||||
} else {
|
||||
logger.info("Not enough information to build a Wind fix out of data provided. AWS received but most probably HDG or HDGM not received (yet) - check your compass.");
|
||||
if (!loggedWindFixGenerationProblem) {
|
||||
logger.info("Not enough information to build a Wind fix out of data provided. AWS received but most probably HDG or HDGM not received (yet) - check your compass.");
|
||||
loggedWindFixGenerationProblem = true;
|
||||
}
|
||||
}
|
||||
} catch (ClassNotFoundException | IOException | ParseException e) {
|
||||
logger.log(Level.INFO, "Exception while trying to construct Wind fix from Igtimi fix " + aws, e);
|
||||
|
||||
Reference in New Issue
Block a user