Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
brycejacobs committed Oct 8, 2015
1 parent 8505bfa commit bd0cf98
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/hci-socket/gatt.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,9 @@ Gatt.prototype.addService = function AddGATTService(service, indicate){
* to be added to take the first spot AFTER our last service that's on the array.
*/
var lastServiceIndex = null;
console.log(handles);
for(var i = 0; i < handles.length; i++){
var handle = handles[i];
console.log(handle);
if(handle.type === 'service'){
if(handle && handle.type === 'service'){
lastServiceIndex = i;
}
}
Expand Down

0 comments on commit bd0cf98

Please sign in to comment.