Changes between Version 2 and Version 3 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Utility/GetMnBdVer
- Timestamp:
- 05/07/14 09:18:45 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/ApplicationLibraries/lib825ev/Utility/GetMnBdVer
v2 v3 3 3 4 4 {{{ 5 int GetMnBdVer( );5 int GetMnBdVer(int *minorVer = NULL); 6 6 }}} 7 7 8 8 == Parameters == 9 9 10 Function does not accept any parameters.10 minorVer - optional pointer to get minor version. 11 11 12 12 == Return Value == … … 18 18 MnBdStartup must be called before this will return a valid result. 19 19 20 == Example ==20 == Examples == 21 21 22 22 {{{ 23 23 int n = GetMnBdVer(); 24 if(n < 1 16)24 if(n < 120) 25 25 { 26 26 DisplayText(0, 0, "Main board update recommended"); 27 27 } 28 28 }}} 29 30 {{{ 31 int minorVer; 32 int majorVer = GetMnBdVer(&minorVer); 33 if(majorVer < 120 || (majorVer == 120 && minorVer < 3)) 34 { 35 DisplayText(0, 0, "Main board update recommended"); 36 } 37 }}} 38 29 39 30 40 == See Also ==