commit
03c16aa19a
4
net_io.c
4
net_io.c
|
@ -587,9 +587,9 @@ char *aircraftsToJson(int *len) {
|
||||||
// No metric conversion
|
// No metric conversion
|
||||||
l = snprintf(p,buflen,
|
l = snprintf(p,buflen,
|
||||||
"{\"hex\":\"%06x\", \"squawk\":\"%04x\", \"flight\":\"%s\", \"lat\":%f, "
|
"{\"hex\":\"%06x\", \"squawk\":\"%04x\", \"flight\":\"%s\", \"lat\":%f, "
|
||||||
"\"lon\":%f, \"validposition\":%d, \"altitude\":%d, \"track\":%d, \"validtrack\":%d,"
|
"\"lon\":%f, \"validposition\":%d, \"altitude\":%d, \"vert_rate\":%d,\"track\":%d, \"validtrack\":%d,"
|
||||||
"\"speed\":%d, \"messages\":%ld, \"seen\":%d},\n",
|
"\"speed\":%d, \"messages\":%ld, \"seen\":%d},\n",
|
||||||
a->addr, a->modeA, a->flight, a->lat, a->lon, position, a->altitude, a->track, track,
|
a->addr, a->modeA, a->flight, a->lat, a->lon, position, a->altitude, a->vert_rate, a->track, track,
|
||||||
a->speed, a->messages, (int)(now - a->seen));
|
a->speed, a->messages, (int)(now - a->seen));
|
||||||
p += l; buflen -= l;
|
p += l; buflen -= l;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue