core/utils.js
function isRecognisedBluetoothDevice(name) {
    if (!name) return false;
    var devs = recognisedBluetoothDevices();
    for (var i=0;i<devs.length;i++)
      if (name.substr(0, devs[i].length) == devs[i])
        return true;
    return false;
  }
function isRecognisedBluetoothDevice(name) {
    if (!name) return false;
    var devs = recognisedBluetoothDevices();
    for (var i=0;i<devs.length;i++)
      if (name.substr(0, devs[i].length) == devs[i])
        return true;
    return false;
  }
function isRecognisedBluetoothDevice ( name ) { if ( ! name ) return false ; var devs = recognisedBluetoothDevices ( ) ; for ( var i = 0 ; i < devs . length ; i ++ ) if ( name . substr ( 0 , devs [ i ] . length ) == devs [ i ] ) return true ; return false ; }
If we can't find service info, add devices
based only on their name
If we can t find service info add devices based only on their name