Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Scavanger committed Nov 12, 2024
1 parent 1fe04df commit abc3fa5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions js/msp/MSPHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -1611,12 +1611,12 @@ var mspHelper = (function () {
data.getUint8(1),
data.getUint8(2),
data.getInt32(3, true),
data.getInt32(4, true),
data.getInt32(7, true),
data.getUint8(11),
0,
data.getInt8(12, true),
null,
data.getUint8(14, true),
data.getUint8(0, true),
);
let verticesCount = data.getUint8(13, true);
if (verticesCount == 0) {
Expand Down
5 changes: 2 additions & 3 deletions tabs/mission_control.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const Plotly = require('./../js/libraries/plotly-latest.min');
const interval = require('./../js/intervals');
const { Geozone, GeozoneVertex, GeozoneType, GeozoneShapes, GeozoneFenceAction } = require('./../js/geozone');
const GeozoneCollection = require('./../js/geozoneCollection');
const { event } = require('jquery');

var MAX_NEG_FW_LAND_ALT = -2000; // cm

Expand Down Expand Up @@ -3429,8 +3428,8 @@ TABS.mission_control.initialize = function (callback) {
});

$('#geozoneSeaLevelRef').on('change', event => {
if (selectedGeozone) {
const isChecked = $(event.currentTarget).prop('checked') ? 1 : 0;
const isChecked = $(event.currentTarget).prop('checked') ? 1 : 0;
if (selectedGeozone && isChecked != selectedGeozone.getSealevelRef()) {
selectedGeozone.setSealevelRef(isChecked);
(async () => {
const vertex = selectedGeozone.getVertex(0);
Expand Down

0 comments on commit abc3fa5

Please sign in to comment.