From 381c6fbd47e90ed502fa3cd1d3b6469a9d13874d Mon Sep 17 00:00:00 2001 From: Ruslan Kyba Date: Tue, 2 Jul 2024 16:22:29 +0300 Subject: [PATCH] fix: no need for drain (#4) --- lib/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/index.js b/lib/index.js index b200d01..32310b0 100644 --- a/lib/index.js +++ b/lib/index.js @@ -269,9 +269,7 @@ class SSP extends EventEmitter { try { // Send command to device - let skipDrain = this.port.write(txBuffer) - if (!skipDrain) this.port.drain() - + this.port.write(txBuffer) this.commandSendAttempts += 1 // Await data from device