Remove the onClose skeletons

This commit is contained in:
Valerie Young 2019-01-07 18:09:23 -05:00
parent 4529533aa8
commit 4d75f7776c
2 changed files with 1 additions and 7 deletions

View file

@ -144,7 +144,6 @@ class GdxFor {
const adapter = new ScratchLinkDeviceAdapter(this._scratchLinkSocket);
createDevice(adapter, {open: true, startMeasurements: false}).then(device => {
this._device = device;
this._device.on('device-closed', this._onClose);
this._startMeasurements();
});
}
@ -214,11 +213,6 @@ class GdxFor {
}
return 0;
}
_onClose () {
this._scratchLinkSocket.disconnect();
}
}
/**

View file

@ -33,7 +33,7 @@ class ScratchLinkDeviceAdapter {
.write(BLEUUID.service, BLEUUID.commandChar, data, 'base64', true);
}
setup ({onClosed, onResponse}) {
setup ({onResponse}) {
this._deviceOnResponse = onResponse;
return this.scratchLinkNativeDevice
.startNotifications(BLEUUID.service, BLEUUID.responseChar, this._onResponse);