1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-13 03:19:54 +03:00

Merge pull request #2248 from Scavanger/Geozones-RC2-Fixes

Geozones RC2 fixes
This commit is contained in:
Marcelo Bezerra 2024-11-16 21:55:57 +01:00 committed by GitHub
commit 3cfbcb6ce5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 57 additions and 11 deletions

View file

@ -1607,7 +1607,11 @@ var mspHelper = (function () {
break;
case MSPCodes.MSP2_INAV_GEOZONE:
var geozone = new Geozone(
if (data.buffer.byteLength == 0) {
break;
}
var geozone = new Geozone(
data.getUint8(1),
data.getUint8(2),
data.getInt32(3, true),