From 266044215dd296174cf7005e85465a3b64536138 Mon Sep 17 00:00:00 2001 From: chopster44 Date: Sun, 30 Nov 2025 17:41:52 +0000 Subject: [PATCH] dbg --- src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 58f8495..7b97065 100644 --- a/src/index.ts +++ b/src/index.ts @@ -250,7 +250,9 @@ export default class Updater { progressCallback(`Sending (${Math.floor((this._fileProgress *100)/this._fileSize)}%), ${this._fileProgress} / ${this._fileSize}`); } else if (dataView[0] == 2) { // done logic - if (this._fileProgress >= this._fileSize) { + console.log(`progress >= filesize: ${this._fileProgress} vs ${this._fileSize}`); + if (this._fileProgress >= this._fileSize) { + console.log("true"); // send agree await this.sendEndCmd(true); progressCallback(`Complete!`); @@ -265,6 +267,7 @@ export default class Updater { } ); } else { + console.log("False"); // send disagree await this.sendEndCmd(false); progressCallback(`Error, starting over: ${this._fileProgress} / ${this._fileSize}`);