I am using code warrior light and I am trying to use SysBatteryInfo function
that shows the percentage of the remaining battery; unfortunately,
percentage parameter is UInt8 and the compiler could not recognize this data
type, it considers it as undefined data type. If I define the percentage
parameter as UInt16 or int, it gives me compilation error :
Error : cannot convert
'unsigned short *' to
'unsigned char *'
Program1.c line 569 NULL, NULL,percentP) ;
The Prototype of the function is as follows :
UInt16 SysBatteryInfo (Boolean set, UInt16* warnThresholdP, UInt16*
criticalThresholdP, UInt16* maxTicksP, SysBatteryKind* kindP, Boolean*
pluggedIn UInt8* percentP)
Any Idea of what could I do ?
Thanks,
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/