From 571a2ddc65fc099a84131847786521dd198cf4c5 Mon Sep 17 00:00:00 2001 From: Andrei Radulescu Date: Fri, 13 Sep 2024 15:39:11 +0300 Subject: [PATCH] fix reset by draining buffer --- src/QDL/firehose.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/QDL/firehose.js b/src/QDL/firehose.js index 960e6a1..42d22f2 100644 --- a/src/QDL/firehose.js +++ b/src/QDL/firehose.js @@ -279,6 +279,12 @@ export class Firehose { let val = await this.xmlSend(data); if (val.resp) { console.log("Reset succeeded"); + // Drain log buffer + try { + await this.waitForData(); + } catch { + // Ignore any errors + } return true; } else { throw "Firehose - Reset failed";