From b186b2eda678b5863650ef8d26a8d9a71a793262 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Thu, 13 Feb 2025 13:21:30 +1300 Subject: [PATCH] return result as an int instead of a byte array --- src/connection/connection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connection/connection.js b/src/connection/connection.js index 52599e8..58e1a45 100644 --- a/src/connection/connection.js +++ b/src/connection/connection.js @@ -229,7 +229,7 @@ class Connection extends EventEmitter { onSentResponse(bufferReader) { this.emit(Constants.ResponseCodes.Sent, { - result: bufferReader.readBytes(1), + result: bufferReader.readInt8(), expectedAckCrc: bufferReader.readUInt32LE(), estTimeout: bufferReader.readUInt32LE(), });