return result as an int instead of a byte array

This commit is contained in:
liamcottle 2025-02-13 13:21:30 +13:00
parent 1afba5b726
commit b186b2eda6

View file

@ -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(),
});