(1.0.35) bump
This commit is contained in:
2
dist/index.cjs.js
vendored
2
dist/index.cjs.js
vendored
@@ -178,7 +178,7 @@ class Updater {
|
||||
// this._fileProgress += this._packetSize;
|
||||
return new Promise((resolve, reject) => {
|
||||
this.bleObject.writeWithoutResponse(this.bleDeviceId, this._updaterServiceUUID, this._updateFileCharacteristicUUID, packet.buffer, () => {
|
||||
console.log(`Sent: ${packet}`);
|
||||
console.log(`Sent: ${packet}, progress: ${this._fileProgress}`);
|
||||
resolve(true);
|
||||
}, (error) => {
|
||||
this._fileProgress -= this._packetSize;
|
||||
|
||||
2
dist/index.es.js
vendored
2
dist/index.es.js
vendored
@@ -176,7 +176,7 @@ class Updater {
|
||||
// this._fileProgress += this._packetSize;
|
||||
return new Promise((resolve, reject) => {
|
||||
this.bleObject.writeWithoutResponse(this.bleDeviceId, this._updaterServiceUUID, this._updateFileCharacteristicUUID, packet.buffer, () => {
|
||||
console.log(`Sent: ${packet}`);
|
||||
console.log(`Sent: ${packet}, progress: ${this._fileProgress}`);
|
||||
resolve(true);
|
||||
}, (error) => {
|
||||
this._fileProgress -= this._packetSize;
|
||||
|
||||
Reference in New Issue
Block a user