1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-23 16:25:19 +03:00
This commit is contained in:
Scavanger 2024-11-12 14:41:14 -03:00
parent 1fe04df9c5
commit abc3fa5606
2 changed files with 4 additions and 5 deletions

View file

@ -1611,12 +1611,12 @@ var mspHelper = (function () {
data.getUint8(1), data.getUint8(1),
data.getUint8(2), data.getUint8(2),
data.getInt32(3, true), data.getInt32(3, true),
data.getInt32(4, true), data.getInt32(7, true),
data.getUint8(11), data.getUint8(11),
0, 0,
data.getInt8(12, true), data.getInt8(12, true),
null, null,
data.getUint8(14, true), data.getUint8(0, true),
); );
let verticesCount = data.getUint8(13, true); let verticesCount = data.getUint8(13, true);
if (verticesCount == 0) { if (verticesCount == 0) {

View file

@ -31,7 +31,6 @@ const Plotly = require('./../js/libraries/plotly-latest.min');
const interval = require('./../js/intervals'); const interval = require('./../js/intervals');
const { Geozone, GeozoneVertex, GeozoneType, GeozoneShapes, GeozoneFenceAction } = require('./../js/geozone'); const { Geozone, GeozoneVertex, GeozoneType, GeozoneShapes, GeozoneFenceAction } = require('./../js/geozone');
const GeozoneCollection = require('./../js/geozoneCollection'); const GeozoneCollection = require('./../js/geozoneCollection');
const { event } = require('jquery');
var MAX_NEG_FW_LAND_ALT = -2000; // cm var MAX_NEG_FW_LAND_ALT = -2000; // cm
@ -3429,8 +3428,8 @@ TABS.mission_control.initialize = function (callback) {
}); });
$('#geozoneSeaLevelRef').on('change', event => { $('#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); selectedGeozone.setSealevelRef(isChecked);
(async () => { (async () => {
const vertex = selectedGeozone.getVertex(0); const vertex = selectedGeozone.getVertex(0);