From df4a24bf1454d2023cd72887a33a4eafb117b71f Mon Sep 17 00:00:00 2001 From: Malcolm Robb Date: Tue, 14 May 2013 10:49:57 +0100 Subject: [PATCH] Version update for Ulrich Updated the version number for Ulrich's code Replaced some Tabs with spaces Forward declaration of the fixBitErrors() function required for M$ VC 6.0 to suppress warning messages. --- dump1090.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/dump1090.c b/dump1090.c index f54deca..2b17a08 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.1205.13" +#define MODES_DUMP1090_VERSION "1.05.1305.13" #define MODES_USER_LATITUDE_DFLT (0.0) #define MODES_USER_LONGITUDE_DFLT (0.0) @@ -327,6 +327,7 @@ void modesSendRawOutput(struct modesMessage *mm); void modesSendBeastOutput(struct modesMessage *mm); void modesSendSBSOutput(struct modesMessage *mm); void useModesMessage(struct modesMessage *mm); +int fixBitErrors(unsigned char *msg, int bits); int fixSingleBitErrors(unsigned char *msg, int bits); int fixTwoBitsErrors(unsigned char *msg, int bits); void modesInitErrorInfo(); @@ -2470,10 +2471,10 @@ void detectModeS(uint16_t *m, uint32_t mlen) { Modes.stat_badcrc++; Modes.stat_fixed++; if (mm.correctedbits == 1) { - Modes.stat_single_bit_fix++; - } else if (mm.correctedbits == 2) { - Modes.stat_two_bits_fix++; - } + Modes.stat_single_bit_fix++; + } else if (mm.correctedbits == 2) { + Modes.stat_two_bits_fix++; + } } } }