Bug 981458 - Revise +CIEV string for battery charge indicator, r=gyeh
authorBen Tian <btian@mozilla.com>
Wed, 12 Mar 2014 17:21:07 +0800
changeset 191452 db7b1775f4600e22880922e950f779e8874afa42
parent 191451 ebe5eb5b8d2a357d7b1ed0cba512f72ba6db333f
child 191453 8fde224865957ce03a715d20a48fa4fabb7f4ae6
push id474
push userasasaki@mozilla.com
push dateMon, 02 Jun 2014 21:01:02 +0000
treeherdermozilla-release@967f4cf1b31c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgyeh
bugs981458
milestone30.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 981458 - Revise +CIEV string for battery charge indicator, r=gyeh
dom/bluetooth/bluez/BluetoothHfpManager.cpp
--- a/dom/bluetooth/bluez/BluetoothHfpManager.cpp
+++ b/dom/bluetooth/bluez/BluetoothHfpManager.cpp
@@ -211,17 +211,17 @@ BluetoothHfpManager::Observe(nsISupports
 void
 BluetoothHfpManager::Notify(const hal::BatteryInformation& aBatteryInfo)
 {
   // Range of battery level: [0, 1], double
   // Range of CIND::BATTCHG: [0, 5], int
   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);
   }
 }
 
 #ifdef MOZ_B2G_RIL
 class BluetoothHfpManager::RespondToBLDNTask : public Task
 {
 private:
   void Run() MOZ_OVERRIDE