From 8407380cbe1e33e67270ad5ace6f5286de470472 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Tue, 17 Feb 2015 01:26:12 +0000 Subject: [PATCH] Pick a somewhat more plausible maximum number of info frames. --- uat_decode.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/uat_decode.h b/uat_decode.h index 9a9de92..3152c14 100644 --- a/uat_decode.h +++ b/uat_decode.h @@ -134,8 +134,9 @@ void uat_display_adsb_mdb(const struct uat_adsb_mdb *mdb, FILE *to); // UPLINK // -/* theoretical maximum if the app data is nothing but 0-length frames */ -#define UPLINK_MAX_INFO_FRAMES 212 +// assume 6 byte frames: 2 header bytes, 4 byte payload +// (TIS-B heartbeat with one address, or empty FIS-B APDU) +#define UPLINK_MAX_INFO_FRAMES (424/6) struct fisb_apdu { int a_flag : 1;