Skip to content

Commit

Permalink
Merge pull request #16 from hotchpotch/remove-dup-function
Browse files Browse the repository at this point in the history
Remove duplicated ```writeUInt8Characteristic``` function
  • Loading branch information
sandeepmistry committed Feb 27, 2016
2 parents bd1f50f + b649135 commit fccd072
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/noble-device.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,6 @@ NobleDevice.prototype.writeUInt8Characteristic = function(serviceUuid, character
this.writeDataCharacteristic(serviceUuid, characteristicUuid, buffer, callback);
};

NobleDevice.prototype.writeUInt8Characteristic = function(serviceUuid, characteristicUuid, value, callback) {
var buffer = new Buffer(1);
buffer.writeUInt8(value, 0);

this.writeDataCharacteristic(serviceUuid, characteristicUuid, buffer, callback);
};

NobleDevice.prototype.writeUInt16LECharacteristic = function(serviceUuid, characteristicUuid, value, callback) {
var buffer = new Buffer(2);
buffer.writeUInt16LE(value, 0);
Expand Down

0 comments on commit fccd072

Please sign in to comment.