fix for ignoring Igtimi fixes of unknown fix type

Change-Id: Idf29655423586f9c827e56c09c5da4d90a431e9d
This commit is contained in:
Axel Uhl committed 2017-11-09 17:44:42 +01:00
1 parent 0de0230708
commit c09dc9fc6a
1 file changed
+6 -3
@@ -54,9 +54,12 @@ public class FixFactory {
Sensor sensor = new SensorImpl(deviceSerialNumber,
fixTypeAndOptionalColonSeparatedSensorsSubId.length < 2 ? 0
: Long.valueOf(fixTypeAndOptionalColonSeparatedSensorsSubId[1]));
Fix fix = createFix(sensor, Type.valueOf(fixType), timePoint, valuesPerSubindex);
result.add(fix);
fixIndex++;
final Type ft = Type.valueOf(fixType);
if (ft != null) {
Fix fix = createFix(sensor, ft, timePoint, valuesPerSubindex);
result.add(fix);
fixIndex++;
}
}
}
return result;