diff --git a/dist/index.cjs.js b/dist/index.cjs.js index 360d662..a3f1c8f 100644 --- a/dist/index.cjs.js +++ b/dist/index.cjs.js @@ -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; diff --git a/dist/index.es.js b/dist/index.es.js index d21082d..a6a6659 100644 --- a/dist/index.es.js +++ b/dist/index.es.js @@ -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; diff --git a/package.json b/package.json index da5be29..c5449bb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "updaterweblibrary", - "version": "1.0.34", + "version": "1.0.35", "description": "OTA Updater App frontend library", "repository": { "type": "git",