int MAMain() { InitConsole(); printf("Battery Status: %i\n", maGetBatteryCharge()); FREEZE; return 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(); }