Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
Pick a somewhat more plausible maximum number of info frames.
Browse files Browse the repository at this point in the history
  • Loading branch information
mutability committed Feb 17, 2015
1 parent bf8a791 commit 8407380
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions uat_decode.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8407380

Please sign in to comment.