mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-08 05:31:55 +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) {
|
BridgeSetupSession.prototype.sendResponse = function(response) {
|
||||||
if (this.validSession) {
|
if (this.validSession) {
|
||||||
var serializedReponse = JSON.stringify(response);
|
var serializedReponse = JSON.stringify(response);
|
||||||
var respData = Buffer(serializedReponse).toString('base64');
|
var respData = new Buffer(serializedReponse).toString('base64');
|
||||||
this.lastResponse = respData;
|
this.lastResponse = respData;
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
this.controlChar.setValue(respData);
|
this.controlChar.setValue(respData);
|
||||||
|
|||||||
Reference in New Issue
Block a user