Logo Search packages:      
Sourcecode: qlix version File versions  Download package

float MtpDevice::BatteryLevel (  )  const

Returns:
the percentage of charge the battery holds

Definition at line 286 of file MtpDevice.cpp.

{
  float ret = (float) ((float)_maxBatteryLevel / (float)_currentBatteryLevel);
  return ret;
}


Generated by  Doxygen 1.6.0   Back to index