Bug 835740 - Modified BRSF value in hands-free profile, r=echou

This commit is contained in:
Gina Yeh 2013-01-30 12:33:23 +08:00
Родитель 13740fea4f
Коммит 4fdf1c57b2
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -679,7 +679,7 @@ BluetoothHfpManager::ReceiveSocketData(UnixSocketRawData* aMessage)
// For more information, please refer to 4.34.1 "Bluetooth Defined AT
// Capabilities" in Bluetooth hands-free profile 1.6
if (msg.Find("AT+BRSF=") != -1) {
SendCommand("+BRSF: ", 33);
SendCommand("+BRSF: ", 97);
} else if (msg.Find("AT+CIND=?") != -1) {
// Asking for CIND range
SendCommand("+CIND: ", 0);

Просмотреть файл

@ -48,7 +48,7 @@ SetJsObject(JSContext* aContext,
JS_NewStringCopyN(aContext,
NS_ConvertUTF16toUTF8(v.get_nsString()).get(),
v.get_nsString().Length());
NS_ENSURE_TRUE(JsData, NS_ERROR_FAILURE);
NS_ENSURE_TRUE(JsData, false);
val = STRING_TO_JSVAL(JsData);
break;
case BluetoothValue::Tuint32_t:
@ -66,7 +66,7 @@ SetJsObject(JSContext* aContext,
NS_ConvertUTF16toUTF8(arr[i].name()).get(),
&val)) {
NS_WARNING("Failed to set property");
return NS_ERROR_FAILURE;
return false;
}
}
} else {