Changes between Version 2 and Version 3 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Utility/GetMnBdVer


Ignore:
Timestamp:
05/07/14 09:18:45 (11 years ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/lib825ev/Utility/GetMnBdVer

    v2 v3  
    33
    44{{{
    5 int GetMnBdVer();
     5int GetMnBdVer(int *minorVer = NULL);
    66}}}
    77
    88== Parameters ==
    99
    10 Function does not accept any parameters.
     10minorVer - optional pointer to get minor version.
    1111
    1212== Return Value ==
     
    1818MnBdStartup must be called before this will return a valid result.
    1919
    20 == Example ==
     20== Examples ==
    2121
    2222{{{
    2323int n = GetMnBdVer();
    24 if(n < 116)
     24if(n < 120)
    2525{
    2626   DisplayText(0, 0, "Main board update recommended");
    2727}
    2828}}}
     29
     30{{{
     31int minorVer;
     32int majorVer = GetMnBdVer(&minorVer);
     33if(majorVer < 120 || (majorVer == 120 && minorVer < 3))
     34{
     35   DisplayText(0, 0, "Main board update recommended");
     36}
     37}}}
     38
    2939
    3040== See Also ==