VK1ET : Allow stats in --interactive mode

This commit is contained in:
Malcolm Robb 2013-05-08 19:38:10 +01:00
parent fb5ef77cd1
commit dd72fc6dd5

View file

@ -2078,7 +2078,7 @@ void detectModeS(uint16_t *m, uint32_t mlen) {
* Basically this function passes a raw message to the upper layers for * Basically this function passes a raw message to the upper layers for
* further processing and visualization. */ * further processing and visualization. */
void useModesMessage(struct modesMessage *mm) { void useModesMessage(struct modesMessage *mm) {
if (!Modes.stats && (Modes.check_crc == 0 || mm->crcok)) { if ((Modes.check_crc == 0) || (mm->crcok)) {
// Track aircrafts if... // Track aircrafts if...
if ( (Modes.interactive) // in interactive mode if ( (Modes.interactive) // in interactive mode
|| (Modes.stat_http_requests > 0) // or if the HTTP interface is enabled || (Modes.stat_http_requests > 0) // or if the HTTP interface is enabled