Skip to content

Commit 45aa589

Browse files
authored
Merge pull request #128 from McGiverGim/fix_blackbox_p_interval
Compatible with Frame Interval P as integer number
2 parents 5eb2a39 + d7607cb commit 45aa589

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/flightlog_parser.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,9 @@ var FlightLogParser = function(logData) {
390390
if (matches) {
391391
that.sysConfig.frameIntervalPNum = parseInt(matches[1], 10);
392392
that.sysConfig.frameIntervalPDenom = parseInt(matches[2], 10);
393+
} else {
394+
that.sysConfig.frameIntervalPNum = 1;
395+
that.sysConfig.frameIntervalPDenom = parseInt(fieldValue, 10);
393396
}
394397
break;
395398
// case "P denom":

0 commit comments

Comments
 (0)