diff --git a/dump1090.c b/dump1090.c index 9f00840..343f8a3 100644 --- a/dump1090.c +++ b/dump1090.c @@ -56,7 +56,7 @@ // MinorVer changes when additional features are added, but not for bug fixes (range 00-99) // DayDate & Year changes for all changes, including for bug fixes. It represent the release date of the update // -#define MODES_DUMP1090_VERSION "1.05.1105.13" +#define MODES_DUMP1090_VERSION "1.05.1205.13" #define MODES_USER_LATITUDE_DFLT (0.0) #define MODES_USER_LONGITUDE_DFLT (0.0) @@ -1663,7 +1663,7 @@ void decodeModesMessage(struct modesMessage *mm, unsigned char *msg) { // void displayModesMessage(struct modesMessage *mm) { int j; - char * pTimeStamp; + unsigned char * pTimeStamp; // Handle only addresses mode first. if (Modes.onlyaddr) { @@ -1674,7 +1674,7 @@ void displayModesMessage(struct modesMessage *mm) { // Show the raw message. if (Modes.mlat) { printf("@"); - pTimeStamp = (char *) &mm->timestampMsg; + pTimeStamp = (unsigned char *) &mm->timestampMsg; for (j=5; j>=0;j--) { printf("%02X",pTimeStamp[j]); } @@ -3052,11 +3052,11 @@ void modesSendRawOutput(struct modesMessage *mm) { char *p = &Modes.rawOut[Modes.rawOutUsed]; int msgLen = mm->msgbits / 8; int j; - char * pTimeStamp; + unsigned char * pTimeStamp; if (Modes.mlat) { *p++ = '@'; - pTimeStamp = (char *) &mm->timestampMsg; + pTimeStamp = (unsigned char *) &mm->timestampMsg; for (j = 5; j >= 0; j--) { sprintf(p, "%02X", pTimeStamp[j]); p += 2; diff --git a/public_html/script.js b/public_html/script.js index cb04863..3662f68 100644 --- a/public_html/script.js +++ b/public_html/script.js @@ -108,6 +108,31 @@ function refreshTableInfo() { i.innerHTML = html; } +function refreshTableInfo() { + var i = document.getElementById('tabinfo'); + + var html = ''; + html += ''; + for (var p in Planes) { + if (p == Selected) { + html += ''; + } else { + html += ''; + } + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + } + html += '
FlightAltitudeSpeedTrackLatLongSeenMsgs
' + Planes[p].flight + '' + Planes[p].altitude + '' + Planes[p].speed + '' + Planes[p].track + '' + Planes[p].lat + '' + Planes[p].lon + '' + Planes[p].seen + '' + Planes[p].messages + '
'; + i.innerHTML = html; +} + function fetchData() { $.getJSON('data.json', function(data) { var stillhere = {} diff --git a/public_html/style.css b/public_html/style.css index 1226b04..26837fc 100644 --- a/public_html/style.css +++ b/public_html/style.css @@ -42,3 +42,8 @@ body { height: 100%; margin: 0; padding: 0; } cursor: pointer; } +#tableinfo { +font-size: x-small; +font-family: monospace; +} +