Fx-9860 battery indicator (C)
22 posts
• Page 3 of 3 • 1, 2, 3
- SimonLothar
- Senior Member
-
- Posts: 605
- Joined: Sat Sep 15, 2012 6:59 am
- Location: Krautland ****
- Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400
Re: Re:
happy wrote:In GII-2, MainBatteryPercentage() doesn't work, gives the wrong value.
IsSlim returns the wrong value on the GII-2 calculators.
Either delete
- Code: Select all
if (IsSlim()){
*firstlevel = 0x2AA;
*secondlevel = 0x288;
}
or replace IsSlim() by
- Code: Select all
#define OS202GII2 0x02020000
//
char IsSlim(){
if ( ( OSVersionAsInt() & 0xFFFF0000 ) == OS202GII2 ) return 0;
else return !( *(char*)PORT_E_DR & 0x08 );
}
I'll be back!
22 posts
• Page 3 of 3 • 1, 2, 3
Return to Tutorials & Code Snippets
Who is online
Users browsing this forum: No registered users and 4 guests