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:
@@ -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
|
||||
|
@@ -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 ' +
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user