예제 #1
0
파일: main.c 프로젝트: Felard/MoSync
int MAMain() {
	InitConsole();

	printf("Battery Status: %i\n", maGetBatteryCharge());

	FREEZE;
	return 0;
}
예제 #2
0
	virtual void start() {
		int charge;
		if(assert("maGetBatteryCharge available?",(charge=maGetBatteryCharge())>=0))
			assert("maGetBatteryCharge in range", charge>=0&&charge<=100); // if the battery charge is zero, then the phone wouldn't be on right?
		suite->runNextCase();
	}