1
0
mirror of https://github.com/JvanKatwijk/qt-dab.git synced 2025-10-06 00:02:40 +02:00

correction in mainId-subId

This commit is contained in:
JvanKatwijk
2024-06-15 14:12:24 +02:00
parent 6a880cd080
commit a1f0e4dedf
3 changed files with 11 additions and 10 deletions

View File

@@ -15,12 +15,12 @@ QMAKE_CXXFLAGS += -O3 -ffast-math
}
unix {
QMAKE_CXXFLAGS += -ffast-math -flto
QMAKE_CFLAGS += -ffast-math -flto
QMAKE_LFLAGS += -ffast-math -flto
#QMAKE_CFLAGS += -g -fsanitize=address
#QMAKE_CXXFLAGS += -g -fsanitize=address
#QMAKE_LFLAGS += -g -fsanitize=address
#QMAKE_CXXFLAGS += -ffast-math -flto
#QMAKE_CFLAGS += -ffast-math -flto
#QMAKE_LFLAGS += -ffast-math -flto
QMAKE_CFLAGS += -g -fsanitize=address
QMAKE_CXXFLAGS += -g -fsanitize=address
QMAKE_LFLAGS += -g -fsanitize=address
}
#QMAKE_CFLAGS += -pg

View File

@@ -180,8 +180,8 @@
target. height + ' m' + '<br>' +
target. dateTime + '<br>' +
coords + '<br>' +
'tii ' + Math. floor (target. tiiValue / 100) +
' ' + target. tiiValue % 100 +
'tii ' + Math. floor (target. tiiValue / 256) +
' ' + target. tiiValue % 256 +
' ' + target.snr + 'dB' + '<br>' +
'Distance to home ' +
target. dist + 'km ' +

View File

@@ -25,6 +25,7 @@
*/
#include "mot-object.h"
#include "radio.h"
#include <algorithm>
motObject::motObject (RadioInterface *mr,
bool dirElement,
@@ -64,8 +65,8 @@ uint16_t rawContentType = 0;
// headerSize, bodySize, b, transportId,
// segmentSize, lastFlag);
// we are actually only interested in the name, if any
while ((uint16_t)pointer < headerSize) {
while ((uint16_t)pointer < std::min ((int)headerSize, (int)segmentSize)) {
// fprintf (stderr, "%d %d %d\n", pointer, headerSize, segmentSize);
uint8_t PLI = (segment [pointer] & 0300) >> 6;
uint8_t paramId = (segment [pointer] & 077);
uint16_t length;