Bug 981458 - Revise +CIEV string for battery charge indicator, r=gyeh

This commit is contained in:
Ben Tian 2014-03-12 17:21:07 +08:00
parent 68190901f8
commit 1201c02cee

View File

@ -216,7 +216,7 @@ BluetoothHfpManager::Notify(const hal::BatteryInformation& aBatteryInfo)
int level = ceil(aBatteryInfo.level() * 5.0);
if (level != sCINDItems[CINDType::BATTCHG].value) {
sCINDItems[CINDType::BATTCHG].value = level;
SendCommand("+CIEV:", CINDType::BATTCHG);
SendCommand("+CIEV: ", CINDType::BATTCHG);
}
}