Skip to content

Commit ebbc6c8

Browse files
committed
Fix BaroAlt decoding
1 parent 25e39c6 commit ebbc6c8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

js/flightlog_fields_presenter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function FlightLogFieldPresenter() {
8383

8484
'vbatLatest': 'Battery volt.',
8585
'amperageLatest': 'Amperage',
86-
'baroAlt': 'Barometer',
86+
'BaroAlt': 'Barometer',
8787

8888
'heading[all]': 'Heading',
8989
'heading[0]': 'Heading [roll]',
@@ -966,7 +966,7 @@ function FlightLogFieldPresenter() {
966966
case 'heading[2]':
967967
return (value / Math.PI * 180).toFixed(1) + "°";
968968

969-
case 'baroAlt':
969+
case 'BaroAlt':
970970
return (value / 100).toFixed(1) + " m";
971971

972972
case 'flightModeFlags':

js/grapher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ function FlightLogGrapher(flightLog, graphConfig, canvas, stickCanvas, craftCanv
232232
idents.vbatField = fieldIndex;
233233
idents.numCells = flightLog.getNumCellsEstimate();
234234
break;
235-
case "baroAlt":
235+
case "BaroAlt":
236236
idents.baroField = fieldIndex;
237237
break;
238238
case "roll":

0 commit comments

Comments
 (0)