Skip to content

Commit 77432e0

Browse files
committed
Merge pull request #105 from rtlopez/move_baro_alt_case
parser fix - BaroAlt case in wrong place
1 parent 721ad97 commit 77432e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/flightlog_parser.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,9 @@ var FlightLogParser = function(logData) {
499499
that.sysConfig[fieldName] = parseInt(fieldValue, 10);
500500
that.sysConfig.motorOutput[1] = that.sysConfig[fieldName]; // by default, set the maxMotorOutput to match maxThrottle
501501
break;
502+
case "BaroAlt":
503+
that.sysConfig.BaroAlt = parseInt(fieldValue, 10);
504+
break;
502505
case "rcRate":
503506
case "rcExpo":
504507
case "rcYawExpo":
@@ -514,9 +517,6 @@ var FlightLogParser = function(logData) {
514517
case "gyro_lpf":
515518
case "acc_hardware":
516519
case "baro_hardware":
517-
case "BaroAlt":
518-
that.sysConfig.BaroAlt = parseInt(fieldValue, 10);
519-
break;
520520
case "mag_hardware":
521521
case "vbat_pid_compensation":
522522
case "rc_smoothing":

0 commit comments

Comments
 (0)