mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-07 21:21:52 +00:00
Fix an warning in nodejs v7
This commit is contained in:
@@ -178,7 +178,7 @@ BridgeSetupSession.prototype.handleManageAccessory = function(request) {
|
||||
BridgeSetupSession.prototype.sendResponse = function(response) {
|
||||
if (this.validSession) {
|
||||
var serializedReponse = JSON.stringify(response);
|
||||
var respData = Buffer(serializedReponse).toString('base64');
|
||||
var respData = new Buffer(serializedReponse).toString('base64');
|
||||
this.lastResponse = respData;
|
||||
setTimeout(function() {
|
||||
this.controlChar.setValue(respData);
|
||||
|
||||
Reference in New Issue
Block a user