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

Version 4 (modified by Don Wilson, 11 years ago) ( diff )

--

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

Note: See TracWiki for help on using the wiki.