mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
Log BT lib version -- toward refusing to run or alerting user of broken Treo650 (version 1).
This commit is contained in:
parent
86f5193801
commit
9ec0177592
1 changed files with 15 additions and 2 deletions
|
@ -35,7 +35,9 @@
|
|||
#ifdef FEATURE_SILK
|
||||
# include <SonyCLIE.h>
|
||||
#endif
|
||||
|
||||
#ifdef XWFEATURE_BLUETOOTH
|
||||
# include <BtLibTypes.h>
|
||||
#endif
|
||||
#include "comtypes.h"
|
||||
#include "comms.h"
|
||||
|
||||
|
@ -216,10 +218,21 @@ static UInt16
|
|||
romVersion( void )
|
||||
{
|
||||
UInt32 dwOSVer;
|
||||
UInt16 result;
|
||||
|
||||
FtrGet(sysFtrCreator, sysFtrNumROMVersion, &dwOSVer );
|
||||
/* should turn 3 and 5 into 35 */
|
||||
return (sysGetROMVerMajor(dwOSVer)*10) + sysGetROMVerMinor(dwOSVer);
|
||||
result = (sysGetROMVerMajor(dwOSVer)*10) + sysGetROMVerMinor(dwOSVer);
|
||||
|
||||
/* Sprint Treo650 is returning 0036 */
|
||||
#if defined XWFEATURE_BLUETOOTH && defined MEM_DEBUG
|
||||
XP_ASSERT( errNone == FtrGet( sysFileCBtLib, btLibFeatureVersion, &dwOSVer ) );
|
||||
XP_LOGF( "sysFileCBtLib version: %lx", dwOSVer );
|
||||
/* Treo 700 on VWZ: sysFileCBtLib version: 00000003 */
|
||||
/* Treo 650 on Sprint: sysFileCBtLib version: 00000001 */
|
||||
#endif
|
||||
|
||||
return result;
|
||||
} /* romVersion */
|
||||
|
||||
#ifdef COLOR_SUPPORT
|
||||
|
|
Loading…
Reference in a new issue