зеркало из https://github.com/mozilla/gecko-dev.git
Bug 835740 - Modified BRSF value in hands-free profile, r=echou
This commit is contained in:
Родитель
13740fea4f
Коммит
4fdf1c57b2
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче