From d7607cbf08073bbed7b6b7c615ec8d24ec3d9337 Mon Sep 17 00:00:00 2001 From: Miguel Angel Mulero Martinez Date: Mon, 9 Apr 2018 14:02:32 +0200 Subject: [PATCH] Compatible with Frame Interval P as integer number --- js/flightlog_parser.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/flightlog_parser.js b/js/flightlog_parser.js index b7b3ae5d..f20c1f22 100644 --- a/js/flightlog_parser.js +++ b/js/flightlog_parser.js @@ -390,6 +390,9 @@ var FlightLogParser = function(logData) { if (matches) { that.sysConfig.frameIntervalPNum = parseInt(matches[1], 10); that.sysConfig.frameIntervalPDenom = parseInt(matches[2], 10); + } else { + that.sysConfig.frameIntervalPNum = 1; + that.sysConfig.frameIntervalPDenom = parseInt(fieldValue, 10); } break; // case "P denom":