From 32abb87fa031c69313a99019cdee60a5437b1b2a Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Tue, 9 Aug 2022 11:10:15 +0200 Subject: [PATCH] nogps stuff --- html/formatter.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/html/formatter.js b/html/formatter.js index d12746d..ec0b8fe 100644 --- a/html/formatter.js +++ b/html/formatter.js @@ -400,6 +400,7 @@ function iOSVersion() { } function wqi(data) { + const INT32_MAX = 2147483647; const buffer = data.buffer; //console.log(buffer); let vals = new Uint32Array(data.buffer, 0, 8); @@ -529,7 +530,7 @@ function wqi(data) { ac.extraFlags = u8[106]; ac.nogps = ac.extraFlags & 1; - if (ac.nogps && nogpsOnly && (u8[73] & 64) != 0xffffffff) { + if (ac.nogps && nogpsOnly && s32[3] != INT32_MAX) { u8[73] |= 64; u8[73] |= 16; }