Skip to content

Commit

Permalink
DFLog: add FMT via injection if not seen
Browse files Browse the repository at this point in the history
  • Loading branch information
meee1 committed Jul 17, 2023
1 parent f74e47d commit dab18c3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ExtLibs/Utilities/DFLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,21 @@ public void FMTLine(string strLine)
};

logformat[lbl.Name] = lbl;

if (!logformat.ContainsKey("FMT"))
{
// mod for custom logformat that hides the FMT key
//FMT, 130, 45, GPS, BIHBcLLeeEefI, Status,TimeMS,Week,NSats,HDop,Lat,Lng,RelAlt,Alt,Spd,GCrs,VZ,T

logformat["FMT"] = new Label()
{
Name = "FMT",
Id = 0x80,
Format = "BBnNZ",
Length = 59,
FieldNames = new List<string>() { "Type", "Length", "Name", "Format", "Columns" }
};
}
}
}
catch
Expand Down

0 comments on commit dab18c3

Please sign in to comment.