(1.0.27) bump
This commit is contained in:
4
dist/index.cjs.js
vendored
4
dist/index.cjs.js
vendored
@@ -199,9 +199,9 @@ class Updater {
|
||||
// send a packet
|
||||
// check for error
|
||||
// write file length
|
||||
return new Promise((resolve, reject) => {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
// set mtu
|
||||
this.bleObject.requestMtu(this.bleDeviceId, this._packetSize, (mtu) => { this._packetSize = mtu; }, () => { });
|
||||
this._packetSize = await this.bleObject.withPromises.requestMtu(this.bleDeviceId, this._packetSize);
|
||||
// start notify
|
||||
this.bleObject.startNotification(this.bleDeviceId, this._updaterServiceUUID, this._updaterCommandCharacterisitcUUID, (rawData) => {
|
||||
let dataView = new Uint8Array(rawData);
|
||||
|
||||
4
dist/index.es.js
vendored
4
dist/index.es.js
vendored
@@ -197,9 +197,9 @@ class Updater {
|
||||
// send a packet
|
||||
// check for error
|
||||
// write file length
|
||||
return new Promise((resolve, reject) => {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
// set mtu
|
||||
this.bleObject.requestMtu(this.bleDeviceId, this._packetSize, (mtu) => { this._packetSize = mtu; }, () => { });
|
||||
this._packetSize = await this.bleObject.withPromises.requestMtu(this.bleDeviceId, this._packetSize);
|
||||
// start notify
|
||||
this.bleObject.startNotification(this.bleDeviceId, this._updaterServiceUUID, this._updaterCommandCharacterisitcUUID, (rawData) => {
|
||||
let dataView = new Uint8Array(rawData);
|
||||
|
||||
Reference in New Issue
Block a user