wiki:Docs/Prog/Manual/ApplicationLibraries/lib825ev/Utility/GetMnBdVer

GetMnBdVer

Gets the main board version

int GetMnBdVer(int *minorVer = NULL);

Parameters

minorVer - optional pointer to get minor version.

Return Value

Returns numeric representation of the version multipled times 100, so version 1.20 is returned as 120.

Remarks

MnBdStartup must be called before this will return a valid result.

Examples

int n = GetMnBdVer();
if(n < 120)
{
   DisplayText(0, 0, "Main board update recommended");
}
int minorVer;
int majorVer = GetMnBdVer(&minorVer);
if(majorVer < 120 || (majorVer == 120 && minorVer < 3))
{
   DisplayText(0, 0, "Main board update recommended");
}

See Also

Last modified 7 years ago Last modified on 04/12/18 13:13:55
Note: See TracWiki for help on using the wiki.